http://www.cnblogs.com/tjsquall/archive/2008/11/27/1342258.html
运行程序出现
Cannot find message resources under key org.apache.struts.action.MESSAGE错误,是说明找不到ApplicationResources.properties,要注意以下四方面。
第一:在web.xml文件<web-app> <servlet>"把下面的内容放在这里"</servlet></web-app>中加入
<init-param>
<param-name>application</param-name>
<param-value>ApplicationResources</param-value>
</init-param>
第二:在struts-config.xml中加入如下设置:
<message-resources parameter="ApplicationResources"/>
该设置最好放在:</action-mappings>"放到这里"</struts-config>
第三:确保ApplicationResources.properties文件在你建立的WEB-INF\classes文件夹中。
可以把applicationResources.properties放到classes文件夹下其它目录,例如:
把ApplicationResources.properties放入WEB-INF\classes\mydir文件夹下。struts-config.xml中的设置必须改
<message-resources parameter="mydir/ApplicationResources"/>
第四:就可能是键值的问题,struts的资源文件也是可以分多资源文件配置的,比如配备是这样的
<message-resources parameter="ApplicationResources" key="myAppRes"/>
如果只有一个带key的资源文件,那就会抛出 org.apache.struts.action.MESSAGE错误了,删除key即可。[color=red][/color]
分享到:
相关推荐
org.apache.poi JAR包,解决个人的 import org.apache.commons.beanutils.PropertyUtilsBean; import org.apache.commons.lang.StringUtils;..."The import org.apache.poi cannot be resolved"的问题
org.apache.poi JAR包,解决个人的 import org.apache.commons.beanutils.PropertyUtilsBean; import org.apache.commons.lang.StringUtils;..."The import org.apache.poi cannot be resolved"的问题
org.apache.poi.xwpf.converter.core-1.0.6org.apache.poi.xwpf.converter.core-1.0.6org.apache.poi.xwpf.converter.core-1.0.6org.apache.poi.xwpf.converter.core-1.0.6
解决经常遇到的The import org.apache.commons.codec cannot be resolved问题,只需导入文件中的commons-codec-1.11.jar就可以,如和导入包就不赘述了。
需要先 import org.apache.commons.lang3.StringUtils; /* 内含 common-lang3.jar commons-lang3-3.9-bin.zip commons-lang3-3.9-src.zip 使用说明.txt*/ public static String getClientIp(HttpServletRequest ...
包含有org.apache.commons.lang3.StringUtils; org.apache.commons.lang3.reflect.FieldUtils等类
看清楚版本,想要其他版本的可以私聊我,版本经测试,可以用,请大家放心下载使用
java开发中操作excle的jar包,功能齐全,很强大,非常实用。
org.apache.ivy_2.4.0.final_20141213170938.jar
hive 开发UDF 使用maven工程 引发jar包缺失 hive 开发UDF 使用maven工程 引发jar包缺失
vue总是报Error Cannot find module 解决办法
org.apache.hadoop.thirdparty.guava guava-r09-jarjar
<groupId>org.apache.maven.plugins <artifactId>maven-shade-plugin <version>3.1.0 <phase>package <goal>shade implementation="org.apache.maven.plugins.shade.resource....
运行Sqoop报错:找不到或无法加载主类 org.apache.sqoop.sqoop 将sqoop-1.4.7.jar包放到Sqoop的lib目录下,问题解决。
主要介绍了Mybatis报错: org.apache.ibatis.exceptions.PersistenceException解决办法的相关资料,需要的朋友可以参考下
Struts常见错误及原因分析. Struts常见错误及原因分析.
The type org.apache.tools.ant.Task cannot be resolved. It is indirectly referenced from required .class files错误....., 解决办法:在工程中加入此jar包
解决Cannot find Graphviz.zip
cannot find symbol import android.os.SystemProperties 前言 最近在搞Android高版本的9和10开发,正在敲着代码唱着歌,发现在Android源码目录的app下面导入import android.os.SystemProperties这个包老是不行...