struts标签问题,急,急,急,在线等

scottwj scottwj 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
从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



...全文

相关推荐

评论 16
收藏 已收藏
分享
返回顶部
scottwj
Java EE 67,535 成员 225,843 内容