我是新的java struts框架。但我想問一個問題。什麼是java struts.xml中的差異路徑類型?
在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>