hi guys,
i've a jsp that will activate a servlet when the submit button is clicked. after the servlet has done its processing, it forward to another jsp for displaying
JSP1 => Servlet1 => JSP2
inside the servlet, i'm using the following method
getServletContext().getRequestDispatcher("/JSP2.jsp".forward(request, response);
suppose the form with JSP1 contains 5 components, and i can access them in Servlet1 using "request.getParameter(paraname)" or "request.getParameterNames()".
my question is when JSP2 is activated, are these form components in JSP1 sent over to JSP2? ie can i use request.getParameter(paraname) in JSP2 to get the value within paraname?
any kind soul pls advise
i've a jsp that will activate a servlet when the submit button is clicked. after the servlet has done its processing, it forward to another jsp for displaying
JSP1 => Servlet1 => JSP2
inside the servlet, i'm using the following method
getServletContext().getRequestDispatcher("/JSP2.jsp".forward(request, response);
suppose the form with JSP1 contains 5 components, and i can access them in Servlet1 using "request.getParameter(paraname)" or "request.getParameterNames()".
my question is when JSP2 is activated, are these form components in JSP1 sent over to JSP2? ie can i use request.getParameter(paraname) in JSP2 to get the value within paraname?
any kind soul pls advise