You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Martienssen Marco <Ma...@softlab.de> on 2001/05/08 15:04:05 UTC

Forward to an Action

Hi,

I'm trying to activate two actions for one request. After the login-action
the viewCategory-action should be activated. For this I've defined a
forward-statement in the action definition of login (see below). My problem
is, that after finishing the login action nothing happens. I don't get the
view.jsp with the input of ViewCategoryAction. Also tomcat (3.2.1) doesn't
report any problems. I verified, that I've the right mapping.findForward
statement in the ViewCategoryAction.

I saw this construction in the struts-example. Am I missing something?

Greetings,

Marco

    <action    path="/login"
    	type="de.softlab.bookmarkmanager.action.LoginAction"
    	name="loginForm"
    	scope="request"
    	validate="true"
    	input="/login.jsp">
    		<forward name="failure"              path="/retry.jsp"/>
    		<forward name="success"              path="/viewCategory"/>
	</action>
    
    <action    path="/viewCategory"
    	type="de.softlab.bookmarkmanager.action.ViewCategoryAction"
    	scope="request"
    	input="/view.jsp">
    		<forward name="failure"              path="/retry.jsp"/>
    		<forward name="success"              path="/view.jsp"/>
    </action>


Re: Forward to an Action

Posted by Jim Richards <gr...@cyber4.org>.
Try 

	<forward name="success"              path="/viewCategory.do"/>

instead of 

>    		<forward name="success"              path="/viewCategory"/>


--
Kumera - a new Open Source Content Management System
for small to medium web sites written in Perl and using XML
http://www.cyber4.org/kumera/index.html