![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Struts2
hehongwei44
爱好编程
展开
-
Unable to find parent packages json-default的解决办法
Unable to find parent packages json-default 在系统加载的时候发现在这个错误,在log4j的日志里面 经查询,是缺少了这个包,因为struts2默认是以插件形式进行加载的,所以是少加载的json处理的包 struts2-json-plugin-2.1.8.1.jar 加上这个包后,问题解决! ...原创 2012-04-24 16:45:58 · 382 阅读 · 0 评论 -
详解struts2中struts.properties
struts.xml和struts.properties 其中struts.xml文件主要负责管理应用中的Action映射,以及该Action包含的Result定义等。除此之外,Struts 2框架还包含一个struts.properties文件,该文件定义了Struts 2框架的大量属性,开发者可以通过改变这些属性来满足应用的需求。 struts.propertie...原创 2012-04-25 10:36:28 · 79 阅读 · 0 评论 -
Could not parse struts.locale setting, substituting default VM locale
创建struts.properties这个文件,放在src目录下就可以了struts.locale=en_GB原创 2012-04-20 12:42:01 · 161 阅读 · 0 评论 -
No configuration found for the specified action: 'helloworld.action' in namespac
今天首次使用Struts2,配置一切正常,使用常用tag也正常,但是在使用<s:form>标记时,发现控制台总是输出警告信息,警告信息内容如下:警告: No configuration found for the specified action: 'ShowMessage' in namespace: ''. Form action defaulting to 'action' at...2012-04-20 14:14:27 · 147 阅读 · 0 评论 -
log4j:WARN Please initialize the log4j system properly解决办法
log4j:WARN No appenders could be found for logger (org.springframework.context.support.ClassPathXmlApplicationContext). log4j:WARN Please initialize the log4j system properly. Spring 使用了LOG4J...原创 2012-04-23 09:57:38 · 172 阅读 · 0 评论