How to pass session values from one servlet container to another servlet container? or how can we get session values of one container in another container?
Answer Posted / mohit rana
It's simple just use session (session object).
HttpSession session = request.getSession();
session.setAttribute(String obj);
and get the above value on other container
session.getAttribute(String obj);
| Is This Answer Correct ? | 16 Yes | 5 No |
Post New Answer View All Answers
What is meant by a web application
What is the difference between the getrequestdispatcher(string path) method of javax.servlet.servletrequest interface and javax.servlet.servletcontext interface?
Which httpsession object is used to view and manipulate information about a session?
What is servlet container?
Explain mvc pattern.
What are the two important api's in for servlets?
When to use doget() and when dopost()?
Explain jsessionid and when is it created?
What is difference between get and post method?
What if you need to span your transaction across multiple servlet invocations?
How to rectify errors in java servlet while compilation?
Who is responsible for writing a constructor?
What is load-on-startup in servlet?
What are the advantages of Servlet over CGI?
How will two or three servlets interact or communicate with each other?