2013年3月31日
摘要: Struts2中,可以在struts2的配置文件中,使用include的节点,来加载配置文件。例如: 1 <!DOCTYPE struts PUBLIC 2 "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN" 3 "http://struts.apache.org/dtds/struts-2.0.dtd"> 4 <struts> 5 <include file="Home.xml"/> 6 <include fil 阅读全文
posted @ 2013-03-31 15:22 Coldest Winter 阅读(1235) 评论(0) 推荐(0) 编辑
摘要: 官网对struts2通配符使用的介绍:Wildcard Mappings<actionname="*_*"class="com.netshuai.action.{1}Action"method="{2}"><resultname="success">/{2}_{1}Success.jsp</result></action>如上所示,所有文件都采用统一的命名规范,第一个*为分类名称,第二个*为操作名,{1}和{2}分别代表第一个和第二个*的替换值,所有action实现类 阅读全文
posted @ 2013-03-31 09:04 Coldest Winter 阅读(410) 评论(0) 推荐(0) 编辑