我是新的 java struts 框架。但我想问一个问题。
在struts.xml
路径中.do
就像"/AddReq.do"
或路径只是名称一样"AddReq"
"/AddReq.do"
和有什么区别"AddReq"
?
例如
<action path="/AddReqPage"
type="...actions.AddReqPageAction">
<forward name="success" path="AddReq" />
<forward name="failure" path="/bos.jsp" />
</action>
<action path="/AddReq"
type="...actions.AddReqAction"
name="AddReqForm" validate="true"
scope="request">
<forward name="success" path="/AddReqDetail.do" />
<forward name="hata" path="AddReq" />
<forward name="failure" path="/bos.jsp" />
</action>