struts 1.x的配置

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.3//EN" "http://struts.apache.org/dtds/struts-config_1_3.dtd">

<struts-config>
<form-beans>
<form-bean name="userinfo" type="web.form.UserinfoForm"></form-bean>
</form-beans>
<global-exceptions />
<global-forwards />
<action-mappings>
<action path="/user" name="userinfo" parameter="op">
<forward name="showUser" path="/showUser.jsp"></forward>
<forward name="show" path="/user.do?op=doShowUser"></forward>
<forward name="updateUser" path="/updateUser.jsp"></forward>
<forward name="toInsertUser" path="/insertUser.jsp" />
</action>
</action-mappings>
<controller>
<set-property property="processorClass"
value="org.springframework.web.struts.DelegatingRequestProcessor" />
</controller>
<message-resources parameter="ApplicationResources" />
</struts-config>

你可能感兴趣的:(apache,xml,struts)