Is it possible to transfer a servlet request from one context to other context If possible can anybody give me the code samples
Regards,Vasantha<p>Great minds discuss ideas. Average minds discuss events. Small minds discuss people.
Joined: Sep 25, 2003
You can get a reference to another application's ServletContext like this:
Then, you can save an attribute into that context. Just remember, servlet context attributes are not inherently thread safe!
You could also use the above described method but instead of putting a variable into the servlet context, you put the variable into request context, get a RequestDispatcher from the context you got above, and forward the request to another application.
Joined: Jan 22, 2004
You must also enbale "Cross Context" accessibility.