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 do you mean by httpservlet and how it is different from the genericservlet?
What do you mean by interservlet communication?
what is meant by servlet to servlet communication?
What is context switching?
How do you define a servlet?
Can we override destroy method in servlet?
What is the difference between the http servlet and generic servlet?
Can you create a deadlock condition on a servlet?
When should you prefer to use doget() over dopost()?
Define the life cycle of a servlets.
What is use of parseQueryString ?
What is a servlet?