Passing multiple parameters via a <s:url/> Struts2 tag
You may disable the URL escape behavior using escapeAmp="false"
attribute. By default, this is enabled, so URL parameter &
will render &
. This will cause a problem on reading the parameter value with parameter name.
- You may need to read the parameter,
request.getParameter("amp;pageNumber_hidden")
- You have stop escaping the entities by adding attribute
escapeAmp
and set the value false as part of the<s:url>
tag (Recommended)
<s:url id="loadReportsForAPageInitial" value="/loadReportsForAPage.action" escapeAmp="false">