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 is the difference between ServletContext and ServletConfig
When the methods init() and Distroy() will be called?
What is the use of httpservletresponsewrapper?
Explain url encoding?
what is EJB and Java servlet
What are the common methods that are included in the http servlet class?
How we can check in particular page the session will be alive or not
Differentiate between get and post?
Explain the difference between get and post method in servlet?
What do you mean by request dispatcher in servlet? Also explain its methods.
Explain url encoding in servlet?
What are the phases of servlet life cycle?