English 中文(简体)
我在使用停靠器2 和小船门户内的散装机时遇到错误。
原标题:I get an error when using redirectAction with struts2 and portlets inside jboss portal
  • 时间:2009-09-21 13:43:36
  •  标签:

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.

问题回答

哪里是警报? 它是在/jsp或/WEB-INF/jsp? 你们能否将某种东西排除在“警报行动”的实施方法之外?





相关问题
热门标签