I have some data in an hidden field on a jsp page
<input type=hidden id="thisField" name="inputName">
how to access or pass this field onsubmit to another page?
This question is related to
jsp
hidden-field
The code from Alex works great. Just note that when you use request.getParameter you must use a request dispatcher
//Pass results back to the client
RequestDispatcher dispatcher = getServletContext().getRequestDispatcher("TestPages/ServiceServlet.jsp");
dispatcher.forward(request, response);
Source: Stackoverflow.com