我在其中引入了
<%@ taglib prefix="s" uri="/struts-tags" %>
的标签库,在from表单中input使用
<input type="hidden" name="currentPage" id="currentPageInpu" value="<s:property value="#pagebean.currentPage"/>"
进行回显数据会报No result defined for action XXXXAction and result input,在网上找了个帖子说是Integer类型转化成String类型出错的,把代码换成<s:property value="%{#pagebean.currentPage}"/>也没有成功,后来我尝试用jsp的EL表达式${pagebean.currentPage}就不会报错了 哈哈哈!不知道有没有更好的办法