文章分类 - Struts2
摘要:转自:http://blog.csdn.net/zhou699/article/details/7027772最近在项目中需要用到struts2和spring多配置文件,网上查了查,大部分都是没有使用通配符的,经过自己摸索,终于成功了,特分享给大家spring,给spring增加通配符比较简单,在web.xml中加入如下<listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class></listener><con
阅读全文
摘要:转自:http://www.2cto.com/kf/201107/97883.html后台代码:View Code 1 import java.util.List; 2 import com.opensymphony.xwork2.ActionSupport; 3 /** 4 * struts2.0获取各种表单的数据 5 * 获取下拉框的值,和复选框的值可以用一个数组或者集合来保存,变量名要和表单的name属性值一致 6 * @author 够潮 7 * 8 */ 9 @SuppressWarnings("unchecked") 10 public clas...
阅读全文
摘要:转自:http://apps.hi.baidu.com/share/detail/222391971.官方介绍的地址:http://struts.apache.org/2.1.6/docs/convention-plugin.html2.struts.xml文件配置只挑选几个重要的常量说明:(1) <constant name="struts.locale" value="zh_CN"/> <constant name="struts.i18n.encoding" value="UTF-8"/&g
阅读全文

浙公网安备 33010602011771号