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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

crossContext via custome tags

Status
Not open for further replies.

mingus

Programmer
May 8, 2001
59
US
I have a server which has multiple applictions.

However they all share the same login and I wish all the same session information.

I have set them up to use a shared classes and lib area and under webapps I put the JSP pages and any classes that is unique for that application.

So I have /webapps/a/page.jsp
/webapps/b/another.jsp

I would like to share object information across applications ("a" and "b" above).

In my custom tags I set something for SESSSION_SCOPE:
pageConext.setAttributeValue("myVar", "stuff", SESSION_SCOPE)

When I switch to another application (i.e. from "a" to "b") I get another session id (I can see if I print out the cookies) and my attribute value I set in "a" is not visable to "b".

Clearly there is answer to how make things work across applictions. I see that there is a crossContext setting in the Context element in server.xml but setting this to true did not have the desire effect!

Any suggestions I get things to work across applications like I am tring?

thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top