Cannot find message resources under key org.apache.struts.action.MESSAGE

来源:互联网 发布:企鹅聊天软件 编辑:程序博客网 时间:2024/06/08 02:57

在JSP中 logic:iterate标签中循环显示查询的内容,报错:

Cannot find message resources under key org.apache.struts.action.MESSAGE

错误位置:

<logic:iterate id="lesson" name="lessonQuery" type="com.lcy.tionForm.LessonForm" scope="request">  <tr>  <td align="center"><bean:write name="lesson" property="ID" filter="true"/></td>    <td style="padding:5px;" align="center"><bean:write name="lesson" property="name" filter="true"/></td><td align="center"><html:link page="/manage/lesson.do?action=lessonModifyQuery" paramId="id" paramName="lesson" paramProperty="ID">修改</html:link></td>    <td align="center"><html:multibox property="delIdArray" styleClass="noborder"><bean:write name="lesson" property="ID"/></html:multibox></td>  </tr>

运行显示第四行bean:write报错

解决办法:

1  在src文件夹下新建一个文件ApplicationResources.properties

2 在struts-config.xml文件中</struts-config>之前加入:
<message-resources parameter="ApplicationResources"/>



0 0