> -----Original Message-----
> From: El Toro [mailto:[EMAIL PROTECTED]
> Sent: Friday, September 10, 2004 1:58 PM
> To: [EMAIL PROTECTED]
> Subject: ActionForward to a different Web App
> 
> 
> Hi,
> 
> I have a struts web application running within Tomcat
> 5.x that is responsible for authentication.
> Authentication in this case just checks a username and
> password against a database and then creates a 'User'
> object and dumps it in the session.

Okay.. except that unless your application server knows that this is one session, it 
will generate a session the first time a user hits every web app.

Tomcat has singl-sign-on, which will do what you want.  Websphere does as well.

> 
> After a successful authentication I would like to
> forward the request to another web application running
> within the same instance of tomcat.  This web
> application will know that the user is authenticated
> if the 'User' object is present in the session.
> 
> The problem I am having is that a new session is
> created when I redirect/forward the request to the
> other web application from the authentication
> application, therefore my 'User' object is not present
> and everyone is unhappy.
> 
> Does anyone know how to accomplish such a thing with
> struts/tomcat 5.x.  Here is what I am doing within my
> Authentication app upon successful authentication:
> 
> nextPage = new
> ActionForward("http://THEHOST:8080/THEWEBAPP/welcome.do";,
> true);
> 
> Thanks in advance,
> 
> Topero Romano
> 
> 
>               
> _______________________________
> Do you Yahoo!?
> Shop for Back-to-School deals on Yahoo! Shopping.
> http://shopping.yahoo.com/backtoschool
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to