<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
<struts-config>
<form-beans>
<!-- 报告上传 -->
<form-bean name="reportBean"
type="com.cabletech.report.beans.Report">
</form-bean>
<form-beans>
<action-mappings>
<action name="reportBean" path="/copyplanAction" parameter="method"
scope="request"
type="com.cabletech.planinfo.action.CopyPlanAction"> </action>
</action-mappings>
</struts-config>
在这里面我想按模块分出来 把相同模块的action放到其他xml,然后跟struts2一样在struts.xml里<include file="xx.xml">
请问struts1如何这样做?
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
<struts-config>
<form-beans>
<!-- 报告上传 -->
<form-bean name="reportBean"
type="com.cabletech.report.beans.Report">
</form-bean>
<form-beans>
<action-mappings>
<action name="reportBean" path="/copyplanAction" parameter="method"
scope="request"
type="com.cabletech.planinfo.action.CopyPlanAction"> </action>
</action-mappings>
</struts-config>
在这里面我想按模块分出来 把相同模块的action放到其他xml,然后跟struts2一样在struts.xml里<include file="xx.xml">
请问struts1如何这样做?
解决方案 »
- Hibernate 主键生成策略的选择
- Log4j开发者进!简单问题。。
- 请教!
- request.getParamter()语法错误
- 请问在用junit作单元测试的时候,log4j的配置文件要放到什么位置?(web程序)谢谢!
- 使用hibernate更新数据库字段值的问题
- 用Jbulider+Jboss下开发CMP的时候
- 请高手指点:关于字库显示问题
- Connection Pool refused to Oracle(8.1.7) DB in win2000 using weblogic7
- 《j2ee设计模式》这本书那有买的?
- servlet编程需要注意哪些问题(面试题)
- 笔试题求解:找出字符串的最长子串,要求字串的所有字符相同,如:"abcdeeefgh"结果是"eee"
<init-param>
<param-name>config</param-name>
<param-value>
/WEB-INF/struts-config/struts-config.xml,
/WEB-INF/struts-config/x.xml,
/WEB-INF/struts-config/y.xml,
/WEB-INF/struts-config/z.xml
</param-value>
</init-param>
x.xml<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" "http://struts.apache.org/dtds/struts-config_1_2.dtd">
<form-beans>
<form-bean name="xForm" type="x.XForm" />
</form-beans>
<action-mappings>
<action path="/x" .....
<struts-config>
一般都是修改web.xml文件。。
修改struct-defautl.xml做专职的业务逻辑控制配置。
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml,
/WEB-INF/struts-users.xml,
/WEB-INF/struts-admin.xml,
</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>