I have the following struts.xml:
<struts>
<package name="default" namespace="/view" extends="struts-portlet-default">
<action name="index" class="com.gigi.LoginAction">
<result type="redirectAction">
<param name="actionName">showAlerts</param>
<param name="namespace">/view</param>
<param name="portletMode">view</param>
</result>
<result name="error">/includes/error.jsp</result>
</action>
<action name="showAlerts" class="com.gigi.AlertsAction">
<result>/jsp/view/Alerts.jsp</result>
</action>
</package>
<package name="edit" namespace="/edit" extends="struts-portlet-default">
<action name="index" class="com.gigi.UpdateNameAction">
<result type="redirectAction">
<param name="actionName">index</param>
<param name="portletMode">view</param>
</result>
<result name="input">/jsp/edit/index.jsp</result>
</action>
</package>
</struts>
地雷行动处有以下执行方法:
public String execute() throws Exception { boolean loggedIn = checkLogin(); System.out.println("LoggedIn = " + loggedIn); if (loggedIn) { return SUCCESS; } return ERROR; }
我正试图从LoginAction转向警觉行动。 每当我开放小船门户2.7.1时,我就会发现以下错误:
请拨资源(/portlet/view/showAlerts)不可用<>。
Can anyone tell me what I am doing wrong? I tried writing the redirect in different ways, but the result is the same... Thanks.