• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 199
  • Last Modified:

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
0
venishjoe
Asked:
venishjoe
  • 2
  • 2
1 Solution
 
TimYatesCommented:
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
0
 
venishjoeAuthor Commented:
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
0
 
TimYatesCommented:
http://www.jguru.com/faq/view.jsp?EID=800059

Is another good explanatory link
0
 
venishjoeAuthor Commented:
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
0

Featured Post

[Webinar] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now