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
Which is the methods of generated servlet?
What is dispatcher servlet?
What is url encoding and url decoding
Can we use threads in Servlets?
What are the types of servlets? Explain
What is the inter-servlet communication?
What are the mechanisms used by a servlet container for maintaining session information?
Explain jsessionid?
What is java servlet session?
Define servlet mapping?
Explains the differences between context.getrequestdispatcher() and request.getrequestdispatcher()?
What are advantages of servlets over cgi?
What is the major difference between servlet and applet?
Once the destroy() method is called by the container, will the servlet be immediately destroyed? What happens to the tasks(threads) that the servlet might be executing at that time?
What is the use of servlet context?