Hi
I have made a html-form with values that is submitted to a servlet. I then validate the values in the servlet and put them in a HTTP-session. If some values are invalid, I want to redirect the user back to the form with the session-values, and use them to fill in the values that were correct. But i don’t know how to access the values in the session that is sent back to the form. I have tried to send the session from the servlet like this:
request.getSession.setAttribute(“name” request.getParameter(“name”);
//Forward request to input-form
RequestDispatcher disp = this.getservletContext.getRequestDispatcher(“form.htm”);
disp.forward(request, response);
I would really appreciate it if someone could help me with this.