if ("request".equals(mapping.getScope()))
request.setAttribute(mapping.getAttribute(), form);
else
session.setAttribute(mapping.getAttribute(), form);
request.setAttribute(mapping.getAttribute(), form);
else
session.setAttribute(mapping.getAttribute(), form);
解决方案 »
- 解析xml字符串 问题
- struts2 验证框架 传参数问题
- displaytag的问题
- 我创建了一个200人的群用于大家共同学习struts+spring+hibernate等
- 一个struts超级棘手的问题,如果有人可以解决的的话,那他一定是个超强人!谢谢各位大虾了!~!!!!
- 装了jbuider就意味装了j2eesdk吗??在线等!!1
- === 急求:JRE/JDK 1.1.8下访问DB2V8的 JDBC 驱动程序 ===
- 问个很土的问题:学习j2ee的话,java基础最低到个什么程度呢?大大们介绍下经验哦
- 如何移动游标到第一行之前(不知道怎样修改TYPE_FORWARD_ONLY的属性)?(在线等哦)
- 自定义标记库是如何读取xml文件的参数的?服务器是weblogic。
- 有用eclipse做swing的吗?
- 想交坐J2EE项目的朋友
jsp端:
<td><html:select name="affairForm" property="affairType">
<html:options collection ="affairTypes" property="typeID" labelProperty="typeName"/>
</html:select>
</td>
action端:
request.setAttribute ("affairTypes", affairTypes);
<logic:iterate id="roleBean" name="roles">
<bean:write name="roleBean" property="description"/>
</logic:iterate>
在actionzhong 用 request.setAttribute("roles",你的list.如ArrayList)