Answer Posted / 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 |
Post New Answer View All Answers
Why do we have servlet filters?
What are the different methods involved in generic servlet?
What is a deployment descriptor?
What is the use of attribute in servlets?
What are different Authentication options available in Servlets.
How the servlet is loaded?
Describe in brief RequestDespatcher?
Write a simple servlet program to print the contents of html.
What is servlet and its types?
Explain the features are in servlet 3?
What is preinitialization of a servlet?
Can you use javascript in servlets?
Explain the lifecycle of a servlet?
Can we get PrintWriter and ServletOutputStream both in a servlet?
What is the purpose of dispatcherservlet properties?