前段时间在网上看见这个关于struts1的配置文件的文章,认为该文章比较详细,对我们配置该文件很有帮助,特此转载。向文章的原创者致礼!
"-//Apache Software Foundation//DTD Struts Configuration 1.1//EN"
"">
key=""hello.error
path="/error.jsp"
scope="session"
type="hello.HandleError"/>
type="addressbook.actions.SearchAction"
name="searchForm"
scope="request"
validate="true"
input="/search.jsp">
input="/jsp/errors.jsp"
name="userForm"
parameter="status"
path="/jsp/user"
scope="request"
type="org.我的项目.struts.action.UserAction">
className="org.apache.struts.validator.ValidatorPlugIn">
property="pathnames"
value="/WEB-INF/validator-rules.xml,/WEB-INF/vlaidation.xml"/>