action在接收jspget数据
关于ssh中的 action在接收 jsp提交的 get数据 是不是对其 比如有 String 自动转换为integer的机制 ,比如我在jsp中分页超链接中的 当前页码
在jsp中获取action传递过来的数据代码如下:
Map request = (Map) ActionContext.getContext().get("request");
用struts2标签可以这么做
<s:iterator value="request">
<s:property value="empId" />
<s:property value="eName" />
<s:property value="eSex" />
<s:property value="eSex" />
<s:property value="eSalary" />
</s:iterator>
热门标签: