Struts1配置文件介绍
<?xml version="1.0" encoding="ISO-8859-1" ?><!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_2.dtd"><struts-config>//定义actionForm<form-beans> //type可以理解为class<form-bean name="orgForm" type="zl.web.forms.OrgActionForm"></form-bean></form-beans><!-- 全局的forward 必须定义在action-mappings前 --><global-forwards><forward name="pub_add_success" path="/common/pub_add_success"></forward><forward name="pub_update_success" path="/common/pub_update_success"></forward><forward name="pub_del_success" path="/common/pub_del_success"></forward></global-forwards><action-mappings>//请求路径<action path="/org"//class type="org.springframework.web.struts.DelegatingActionProxy"//actionForm的namename="orgForm"//应用域scope="request"//制定调用哪个方法 在jsp里参数里带一个method=.... parameter="method"input="验证错误的请求">//响应试图<forward name="index" path="/org/index.jsp"></forward><forward name="add_input" path="/org/add_input.jsp"></forward><forward name="add_success" path="/org/add_success.jsp"></forward><forward name="del_success" path="/org/del_success.jsp"></forward></action></action-mappings><message-resources parameter="MessageResources"></message-resources></struts-config>