如何根据用户请求在显示标签中应用页面大小?
我创建了一个用于选择 Pasize 的下拉菜单。
<s:select name="pageSize" cssClass="drop"
list="#actResultLimitValue.lstEntities" listKey="code"
listValue="value" onchange="document.forms[0].submit()">
pageSize 属性位于 Actionclass 中。我在显示标签中使用了这个变量。什么也没发生。我收到错误。
<display:table id="data" name="lstEntities" sort="list" uid="row" class="main"
pagesize="<%pageSize%>" export="true"
requestURI="findPrtyByPrty.action">
如何实现这一目标?
I have created one drop down for pasize selection.
<s:select name="pageSize" cssClass="drop"
list="#actResultLimitValue.lstEntities" listKey="code"
listValue="value" onchange="document.forms[0].submit()">
And pageSize attribute is there in Actionclass. I used this variable in display tag. Nothing happend. i am getting error.
<display:table id="data" name="lstEntities" sort="list" uid="row" class="main"
pagesize="<%pageSize%>" export="true"
requestURI="findPrtyByPrty.action">
How to achieve this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
对于下面的代码效果很好,
Worked well for below code,
呃...我确实只是将其作为评论,但在盯着它一段时间后我非常有信心这是正确的答案...所以我会给出一个真正的答案。
看起来你正在尝试从脚本语言获取 pageSize...如果它是 jsp 尝试
虽然你说它在操作类中所以...如果你试图从 struts2 获取它尝试
Eh... I did just have this as a comment, but I'm pretty confident after staring at it for a while that it's the correct answer... so I'll put a real answer.
It looks like you're trying to get the pageSize from your scripting language... if it's jsp try
Though you say it's in the action class so... if you're trying to get it from struts2 try