<a href="/wsczxt2/loadRechargeInfoList.action?pageMethod=previous¤tPage=<s:property value='pager.getCurrentPage()'/>">我在JSP页面里这样写的话 点击 下一页 那么地址栏会输出这样的地址http://localhost:8089/wsczxt2/loadRechargeInfoList.action?pageMethod=next¤tPage=<s:property%20value="pager.getCurrentPage()"/>
显然 =<s:property%20value="pager.getCurrentPage() 标签没有起作用直接在页面输出=<s:property%20value="pager.getCurrentPage() 这个是可以得到的 请问怎么解决这个问题 多谢
显然 =<s:property%20value="pager.getCurrentPage() 标签没有起作用直接在页面输出=<s:property%20value="pager.getCurrentPage() 这个是可以得到的 请问怎么解决这个问题 多谢
<s:param name="pageMethod" value="previous"></s:param>
<s:param name="currentPage" value="pager.getCurrentPage()"></s:param>
</s:url>
<s:a href="%{deal_type}">
</s:a>
第一种:第二种(OGNL):
<s:a href="/user/regester.action?page=%{pager.getCurrentPage()">点击我看详情</s:a>注意:
在s:a标签里不要使用=<s:property value='pager.getCurrentPage()'/>">
这种写法,是不能出来值的,即使你使用OGNL,如:=<s:property value='%{pager.getCurrentPage()}'/>">,最终pager.getCurrentPage()的值能出来,但是href的值却是:
<a href="/wsczxt2/loadRechargeInfoList.action?pageMethod=previous¤tPage=<s:property value='1'/>"> 类似这种。
如果有不对的地方,望大家拍砖并告之,谢谢!
<s:a href="getV?Id=%{voteinfo.voteinfoid}">XXXXX</s:a>