<struts>
<package name="ssh" namespace="/" extends="struts-default">
<action name="employee_*" class="employeeAction" method="{1}" >
<result name="input">/index.jsp</result>
<result name="success" type="redirect">/frame.jsp</result>
<result name="findAll">/frame/listEmployee.jsp</result>
</action>
public String findAll(){
PageBean<Employee> pageBean = employeeService.findByPage(currentPage);
ActionContext.getContext().getValueStack().push(pageBean);
return "findAll";
}
<s:if test="currentPage != 1">
<a href="${pageContext.request.contextPath }/employee_findAll.action?currentPage=1">[首页]</a>
<a href="${pageContext.request.contextPath }/employee_findAll.action?currentPage=<s:property value="currentPage-1"/>">[上一页]</a>
</s:if>
<s:if test="currentPage != totalPage">
<a href="${pageContext.request.contextPath }/employee_findAll.action?currentPage=<s:property value="currentPage+1"/>">[下一页]</a>
<a href="${pageContext.request.contextPath }/employee_findAll.action?currentPage=<s:property value="totalPage"/>">[尾页]</a>
</s:if>
员工的action中,你的currPage要提供set方法
呃呃呃,我也不知道,,,