You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Monajit Choudhury <Mo...@PLANETASIA.COM> on 2003/08/14 18:00:48 UTC
HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1
Hi
I am facing a problem.I have a login page.After a person logs in, he
should be taken to another page, but via an action class(path=/dashboard)
which will create the data to be shown in that page.But that action class is
not invoked atall.
Here is a snippet of my struts-config.xml file.
<action path="/login"
type="com.puma.gbs.uma.action.LoginAction"
name="loginForm"
input="/pages/puma_login.jsp">
<forward name="success"
path="/dashboard"/>
<forward name="failure" path="/pages/puma_login.jsp" redirect="true"/>
</action>
<action path="/dashboard"
type="com.puma.gbs.dashboard.action.DashboardAction"
name="dashboardForm"
input="/pages/db/main.jsp"
scope="request">
<forward name="viewDashboard" path="/pages/db/dashboard.jsp"/>
<forward name="failure" path="/index.jsp"/>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
RE: HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1
Posted by Mike Jasnowski <mj...@bea.com>.
I think you need <forward name="success" path="/dashboard.do"/> in your
actionforward for logic action
-----Original Message-----
From: Monajit Choudhury [mailto:MonajitC@PLANETASIA.COM]
Sent: Thursday, August 14, 2003 12:01 PM
To: Struts Users Mailing List
Subject: HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1
Hi
I am facing a problem.I have a login page.After a person logs in, he
should be taken to another page, but via an action class(path=/dashboard)
which will create the data to be shown in that page.But that action class is
not invoked atall.
Here is a snippet of my struts-config.xml file.
<action path="/login"
type="com.puma.gbs.uma.action.LoginAction"
name="loginForm"
input="/pages/puma_login.jsp">
<forward name="success"
path="/dashboard"/>
<forward name="failure" path="/pages/puma_login.jsp" redirect="true"/>
</action>
<action path="/dashboard"
type="com.puma.gbs.dashboard.action.DashboardAction"
name="dashboardForm"
input="/pages/db/main.jsp"
scope="request">
<forward name="viewDashboard" path="/pages/db/dashboard.jsp"/>
<forward name="failure" path="/index.jsp"/>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org