我要做国际化,可是在jsp页面中使用<bean:message>出了点问题。总是抛出javax.servlet.jsp.JspException: Cannot find message resources under key dailyLogin。不知要如何解决
相关配置信息:
struts-config-dailyLogin.xml:
<message-resources key="dailyLogin" parameter="neusoft.ttc.dms.common.i18n.ApplicationResourcesDailyLogin_zh_CN.properties" />web.xml:
<init-param>
<param-name>config</param-name>
<param-value>
/WEB-INF/config/struts/struts-config-common.xml,
/WEB-INF/config/struts/struts-config-login.xml,
/WEB-INF/config/struts/struts-config-setting.xml,
/WEB-INF/config/struts/struts-config-dailyLogin.xml
</param-value>
</init-param>
<init-param>
<param-name>application</param-name>
<param-value>ApplicationResources</param-value>
</init-param>
相关配置信息:
struts-config-dailyLogin.xml:
<message-resources key="dailyLogin" parameter="neusoft.ttc.dms.common.i18n.ApplicationResourcesDailyLogin_zh_CN.properties" />web.xml:
<init-param>
<param-name>config</param-name>
<param-value>
/WEB-INF/config/struts/struts-config-common.xml,
/WEB-INF/config/struts/struts-config-login.xml,
/WEB-INF/config/struts/struts-config-setting.xml,
/WEB-INF/config/struts/struts-config-dailyLogin.xml
</param-value>
</init-param>
<init-param>
<param-name>application</param-name>
<param-value>ApplicationResources</param-value>
</init-param>
解决方案 »
- 关于cookie的赋值与取值
- 悬赏100元人民币+80分,求基于servicemix开发的进行简单数据库操作的source!!!!
- strtus2 (webwork)执行原理问题
- Error listenerStart的问题
- HIBERNATE中关于SESSION的问题
- java或j2ee项目开发要用到存储过程,触发器,游标,视图吗?
- 请问RMI中如何实现连续远程方法调用?
- 一个JNDI困惑很久的问题,望高手指点!
- 用jbuilder做的jsp,如何讲网址中的端口号8080去掉,高分求助,在线等,多谢!
- 问一个log4j的问题,在线等待ing
- Web系统如何自动发送邮件带有附近的?
- Java如何与C进行通信
应该为:
<message-resources key="dailyLogin" parameter="neusoft.ttc.dms.common.i18n.ApplicationResourcesDailyLogin_zh_CN" />调用时:
<bean:message key="xx" bundle="dailyLogin"/>
改了,还是那错误
2.ApplicationResourcesDailyLogin_zh_CN 有没有加载。
有没有dailylogin.main.mainTitle 检查一下啊。应该不难吧?
问一下.properties文件何时被加载?为何我已经更改了.properties文件中的value值,但是页面文字没有变化呢?还像还是用的原来的
但是页面文字没有变化呢? --》重启web容器即可。
Deploymen status:
Deployment is out of date due to changes in the underlying project contents. You'll need to manually 'Redeploy' the project to update the deployed archive.