Jump to content

patonoid

Members
  • Posts

    6
  • Joined

  • Last visited

About patonoid

  • Birthday 06/18/1998

Profile Information

  • Gender
    Male
  • Location
    Brazil

patonoid's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. I did not notice that :/ Sorry for the inconvenience. I am new to this and this my first time trying to deploy anything to the web, I have just uploaded another war file, this time its named correctly, by the way I really like how fast replies are, I will be making another donation soon (since I live in Brazil any dollar amount is kind of much), but I really hope it can help in some way. Thank you for your patience. Gabriel
  2. So after some playing around with my application locally and the one deployed here: http://empreenda.heliohost.org/FINAL/admin/login.jsp I have come to the conclusion that session.getAttribute() is not working for some reason on the server. if(request.getParameter("sair")!=null) { session.setAttribute("usuarioAdmin", null); } String msg = ""; if(request.getParameter("txtLogin")!=null && request.getParameter("txtSenha")!=null){ msg = "Tentou fazer o login"; String login = request.getParameter("txtLogin").toString(); String senha = request.getParameter("txtSenha").toString(); if(login.equals("administrador") && senha.equals("password") ) { session.setAttribute("usuarioAdmin", login); response.sendRedirect("categoria_listar.jsp"); } else { msg = "Otário"; }} what should happen here is that if the user inputs the correct log in information a session.setAttribute and a redirect to a different jsp file should occur.the header of the file redirected to has this: if (session.getAttribute("usuarioAdmin") == null) { response.sendRedirect("login.jsp"); } which tests if the session is null and if it is, it redirects back to the login page. Note that if the wrong log in information is input a message should show and no redirect should take place. after testing it locally with right and wrong log in information I can simulate both scenarios but on the deployed version for some reason i am redirected back to the login page even if I input the right log in credentials as if I had no session attribute set and no wrong log in message is displayed. Does anyone have any idea how I could fix this and if can get the tomcat logs for this behaviour.
  3. could you please re-deploy FINAL.war I just uploaded a new file, the last one couldnt connect to the postgres database. Also is there a way https can be enabled? Thanks
  4. Please deploy my war file: FINAL.war on the pato account. Thank you
  5. Account to be moved from johnny to tommy Account name: patonoid Transaction ID: 8D070174XD6908208
×
×
  • Create New...