我試圖對第一個動作的成功運行另一個動作,但是我得到的是錯誤,表示請求的資源不可用。從struts.xml文件中檢查下面的代碼。運行動作成功執行動作
<action name="login" class="org.shobhan.action.LoginAction" >
<result name="success" type="dispatcher">/showProfile</result>
<result name="error" type="redirect">/Login.jsp</result>
</action>
<action name="showProfile" class="org.shobhan.action.ShowProfileAction" >
<result name="success">/profile.jsp</result>
</action>
我有兩個java文件LoginAction和ShowProfileAction存在於同一個文件夾中。
像/showProfile.jsp – 2012-03-19 19:02:38
我試過.action,沒有工作。 – NotesArt 2012-03-19 19:07:49