• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 200
  • 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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

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