struts标签问题,急,急,急,在线等
从action到页面
action里为:
request.setAttribute("list", list);
页面为:
<logic:iterate id="mes" name="list" type="com.dawnpro.test.dao.model.TUser">
<tr>
<td><div align="center"><bean:write name="mes" property="id" /></div></td>
<td><div align="center"><bean:write name="mes" property="password" /></div></td>
</tr>
</logic:iterate>
其中id为int,username为string
不要<bean:write name="mes" property="id" />正常
否则报错
javax.servlet.ServletException: Cannot find message resources under key org.apache.struts.action.MESSAGE
......
javax.servlet.jsp.JspException: Cannot find message resources under key org.apache.struts.action.MESSAGE