I have taken parameters of a form from a jsp. I need to pass that parameters to another jsp. How can I do it without writing that manually using string like another.jsp?name=value. Since there are many paramters, passing through URL is inconvenient. Is there a way to do it ?

JIA Java Italian Association

With the <jsp:forward> and <jsp:include> tags you can also pass parameters using the <jsp:parameter> tag:

<jsp:[include|forward] page=... ...>
  <jsp:parameter name="PARAM_NAME_1" value="PARAM_VALUE_1"/>
  <jsp:parameter name="PARAM_NAME_2" value="PARAM_VALUE_2"/>
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



About | Sitemap | Contact