You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Hohlen, John" <JH...@erac.com> on 2002/09/13 23:53:35 UTC

Forwarding to a Sub App from the ActionServlet

Does anyone know how to forward the user from the ActionServlet to a URL in
a sub-application?  I've extended the ActionServlet class to detect whether
a user has properly logged in.  If they haven't, I would like to forward
them to an action mapping in my "login" module.  Specifically, to the action
mapping path "/displayLogin".  Placing this logic here allows me to prevent
users from nose-diving into my application without logging in first.  If
they haven't logged, they always get forwarded to the login screen
regardless of what URL they specify.

In Struts 1.0, I used the "processActionForward()" method in the
"ActionServlet" to do this.  But in Struts 1.1, this method has been moved
to the "RequestProcessor" class.   I didn't see much documentation about how
to forward to a sub-app from the Servlet.  Also, would it be possible to use
SwitchAction here?  I'm confused on how to do this in Struts 1.1.

Thanks,

JOHN


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Forwarding to a Sub App from the ActionServlet

Posted by James Mitchell <jm...@telocity.com>.
That topic is discussed thoroughly in both the archives and in Chuck
Cavaness' book (available for review on serverside.com).

Have you tried searching those places?

James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the "Open Minded Developer Network"
http://www.open-tools.org/struts-atlanta




> -----Original Message-----
> From: Brijesh NK [mailto:brijeshnk@sysarris.soft.net]
> Sent: Saturday, September 14, 2002 12:11 AM
> To: Struts Users Mailing List
> Subject: RE: Forwarding to a Sub App from the ActionServlet
>
>
> Hi,
>
> What is  Sub Application concept in Struts frame work.
>
>
> brijesh
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Forwarding to a Sub App from the ActionServlet

Posted by Brijesh NK <br...@sysarris.soft.net>.
Hi,

What is  Sub Application concept in Struts frame work.


brijesh 

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>