Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

One application calling another application URL???

Status
Not open for further replies.

dhalliyur

Programmer
Sep 17, 2001
3
US
Hi
We have diffrent applications, where one application invokes the URL
of the another appication, our requirment is we need pass the same
session information to the called application(Sharing the session between the application), Can anybody tell me how to do this..
Thanks in advance
Dharanesha
 
if u use a servlet to do a url redirect, the second app should have complete access to the session, as it is effectively part of the same application as far as the browser http session is concerned.

also in the HttpServletRequest there is a method called getSession(). this returns a http session object which you could pass along to your other app.

or you could jsut pass all the parameters from the session to your other app
 
I disaggree. If the two Servlets are in the same Web Application then yes. If they are not then the Session is not shared and you need to take the second approach that LittleWing mentioned, which is passing over all of the information stored in the Session. You could do this thru multiple hidden variables in a POST or you could possibly Serialize the Session Object into a hidden value in the HTML page and Deserialize it in the other Servlet. Wushutwist
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top