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 |
Explain the difference between GET and POST methods?
When using servlets to build the HTML, you build a DOCTYPE line, why do you do that?
Difference between doget and dopost?
what is meant by servlet to servlet communication?
What is the process to implement doget and dopost methods?
What is difference between get and post method?
What do you mean by session tracking and also explain its techniques?
Is the init(ServletConfig sc) throws IOException or not?
How to rectify errors in java servlet while compilation?
What is preinitialization of a servlet?
What is servlet looping or chaining?
What is the directory structure of web application?