You need to use ParamEncoder to get the name (and eventually the value) of displayTag
's parameters, specified in TableTagParameters.html, in your case PARAMETER_PAGE
.
<div>
With Scriptlets
<br/>
<% String pageNumParameter =
new org.displaytag.util.ParamEncoder("id_of_your_displaytag_table").encodeParameterName(org.displaytag.tags.TableTagParameters.PARAMETER_PAGE); %>
[parameter name] = <%= pageNumParameter %>
<br/>
[parameter value]= <%= request.getParameter(pageNumParameter) %>
</div>
<div>
With OGNL
<br/>
<s:set var="pageNumParameter"
value="%{new org.displaytag.util.ParamEncoder('id_of_your_displaytag_table').encodeParameterName(@org.displaytag.tags.TableTagParameters@PARAMETER_PAGE)}" />
[parameter name] = <s:property value="%{#pageNumParameter}"/>
<br/>
[parameter value]= <s:property value="#parameters[#pageNumParameter]"/>
</div>
Then you should be able to craft a request
by passing the dynamic generated parameter for that table, with the value you want (from a SelectBox
, from an Input Text
, from a script etc)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…