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 |
How does tomcat servlet container work?
can i call init() method in destroy() method of servlset. ?
How we can create war file in servlet?
What is the use of attribute in servlets?
What are the different mode that servlets can be used?
How do we share data using 'getservletcontext ()?
What do you mean by default initialization in java servlet?
Describe servlet?
What is Servlet API used for connecting database?
How to upload a file to the server using servlet?
What are the differences between servlet context vs servlet config?
Why do we need servlet filter?