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 difference between server and servlet?
Can you refresh servlet in client and server-side automatically?
What is a servlet context?
Is it good idea to create servlet constructor?
Explain the servlet context.
When servlet object is created?
Why filter is used in servlet?
What is the difference between the servlets and cgi programs?
Describe the phases of servlet lifecycle?
What is java servlet?
How to make sure a servlet is loaded at the application startup?
Is servlet thread safe?
Why HttpServlet class is declared abstract?
What is cgi?
What is api in servlet?