How variables can be accessed across the sessions?
Answers were Sorted based on User's Feedback
Answer / mohan
we have to set the variable in session object.like
session.setAttribute("somename",varible name);
and then we can get this variable where we want in this
session
session.getAttribute("somename");
Is This Answer Correct ? | 2 Yes | 0 No |
What advantages do servlets have over CGI programs?
What is the directory structure of web application?
What do you mean by cgi and what are its drawbacks?
How threads are implemented in servlets?
Who is responsible to create the object of servlet?
Explain the difference between servletconfig and servletcontext in servlet?
How can I share objects across different sessions?
What is the difference between 2 types of servlets?
How will two or three servlets interact or communicate with each other?
Differentiate between the get and post method
What are the advantages of servlets over traditional cgi?
What is the use of servlet wrapper classes?