You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by José Moreira <jm...@e-terno.net> on 2003/06/04 22:14:24 UTC

Action Forwards

Hello, im using struts and tiles to build a postgresql table CRUD.

i have an index.jsp which includes a login.jsp if the user is not in
session or a menu.jsp and a eventlist.jsp if the user is in!

after a user does a login successfully, i call a map.findfordward to
'listevents' which is an Struts action in charge of building a list of
events and save it in the session, then calls map.findfordward to
'sucess' that is mapped to 'index.jsp' again but this time because of
the 'user' session object only menu.jsp and a eventlist.jsp are included
in 'index.jsp' showing the list built in 'listevents'.

the problem is that when that happens, the url still remains
'http://localhost/logon.do' and not 'index.jsp' ... not allowing to pass
GET parameters for posterior actions... what can i.do :) ?

thanks,good work and have fun!

-- 
José Moreira <jm...@e-terno.net>


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: Action Forwards

Posted by "Bradley M. Handy" <br...@williamstonfmc.org>.
In your ActionForward configuration for the "index.jsp" page.  Set the 
"redirect" attribute to "true".

Brad Handy

At 04:14 PM 6/4/2003, you wrote:
>Hello, im using struts and tiles to build a postgresql table CRUD.
>
>i have an index.jsp which includes a login.jsp if the user is not in
>session or a menu.jsp and a eventlist.jsp if the user is in!
>
>after a user does a login successfully, i call a map.findfordward to
>'listevents' which is an Struts action in charge of building a list of
>events and save it in the session, then calls map.findfordward to
>'sucess' that is mapped to 'index.jsp' again but this time because of
>the 'user' session object only menu.jsp and a eventlist.jsp are included
>in 'index.jsp' showing the list built in 'listevents'.
>
>the problem is that when that happens, the url still remains
>'http://localhost/logon.do' and not 'index.jsp' ... not allowing to pass
>GET parameters for posterior actions... what can i.do :) ?
>
>thanks,good work and have fun!
>
>--
>José Moreira <jm...@e-terno.net>
>
>
>---------------------------------------------------------------------
>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