Link to home
Start Free TrialLog in
Avatar of venishjoe
venishjoeFlag for United States of America

asked on

Accessing Objects b/w diffrent web applications

Hai,

Say Iam having two web applications or contexts in tomcat.Each one has one jsp file.name it A and B.Iam creating an object in the jsp A.Can I access the object in the jsp B. (Remember both or in diffrent contexts/ web application)

Thanking you in advance

Regards
Venish
Avatar of TimYates
TimYates
Flag of United Kingdom of Great Britain and Northern Ireland image

You can share sessions between contexts, so in theory, you can add an object to the session in one webapp, and read it out in the other...

Is this what you mean?

http://www.fwd.at/tomcat/sharing-session-data-howto.html
Avatar of venishjoe

ASKER

Thanks for the prompt reply.Iam going through the like.

Meanwhile what I actually want is I have 2 folders in web-app ie., to applications with each having one jsp.say jspA for appl 1 and jspB for appl 2.

Now Iam creating an object in jspA.

How can i access it in jspB

Many Thanks

Regards
Venish
ASKER CERTIFIED SOLUTION
Avatar of TimYates
TimYates
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hai,

I read that but it's very vague and Iam unable to duplicate it.

As I said in my previous post, How can I access the obj, it was not clearly explained.

Any solutions.....


With Thanks

Venish