Question:
I want to collect form data in a JSP page where the form issubmitted by one of many possible links (possibly passing values usingURL rewriting). In one case, I have one text input box, followed bytwo links. The text input box’s data ends up in the HttpServletRequestobject. How do I pass the URLs of the links to the JSP page?
Answer:
The normal way to pass extra data from an HTML form to a JSP pageis through hidden input tags. The values of the hidden input willbe included in the HttpServletRequest object as parameters,retrievable with either getParameter() or getParameterValues(). Anexample of using the HTML hidden tag is: