![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Struts2
文章平均质量分 77
bits00
有的时候,我好想哭,但是我不知的怎么流泪。
如果一个从不会流泪的人,却并不代表他有多么坚强,那么这是一种悲哀。
展开
-
Strust2 constant 配置
<!-- struts2加载常量的顺序 struts-default.xml struts-plugin.xml struts.xml struts.properties web.xml 后面的会覆盖掉前面的常量,最好在struts.xml中定义 -->原创 2011-12-08 09:26:40 · 778 阅读 · 0 评论 -
Struts2 的国际化
1. 关于国际化的配置:struts.xml 2.在action中语言的设置: //得到浏览器的本地语言 HttpServletRequest req = ServletActionContext.getRequest(); Locale lang1 = req.getLocale(); //创建语言 Locale lang2 = new Locale("en", "US");//英语原创 2011-12-08 11:49:30 · 707 阅读 · 0 评论 -
struts2 的注解配置
1. 必要的jar包: commons-fileupload-1.2.1.jar commons-io-1.4.jar commons-logging-1.1.1.jar commons-logging-api.jar freemarker-2.3.15.jar ognl-2.7.3.jar struts2-core-2.1.8.1.jar xwork-core-2.1.6.jar原创 2011-12-08 10:50:48 · 8905 阅读 · 2 评论