我试图对第一个动作的成功运行另一个动作,但是我得到的是错误,表示请求的资源不可用。从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