日期:2014-05-17 浏览次数:20739 次
<s:form action="struts_test.action" method="post" namespace="/aa">
<input type="text" id="name" name="name"/>
<input type="submit" id="submit" value="提交"/>
</s:form>
<package name="test" extends="struts-default" namespace="/bb">
<action name="struts_*" class="com.qlw.action.StrutsAction" method="{1}">
<result name="success">/test.jsp</result>
</action>
</package>
<package name="test2" extends="struts-default" namespace="/">
<action name="struts_*" class="com.qlw.action.StrutsAction" method="{1}">
<result name="success">/test2.jsp</result>
</action>
</package>
<package name="test3" extends="struts-default" namespace="">
<action name="struts_*" class="com.qlw.action.StrutsAction" method="{1}">
<result name="success">/test3.jsp</result>
</action>
</package>
http://localhost:8080/Struts2_Src_Analysis/aa/struts_test.action
http://localhost:8080/Struts2_Src_Analysis/struts_test.action