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
What methods do you use in servlet - applet communication?
What are the supporting protocol by HttpServlet ?
Can we override servlet service method?
How can you run a servlet program?
How to handle exceptions thrown by application with another servlet?
Explain web container.
What is Servlet API used for connecting database?
What are the types of Session Tracking ?
How can we invoke another servlet in a different application?
What is the use of java servlet api?
In the servlets, we are having a web page that is invoking servlets ,username and password? which is checks in database? Suppose the second page also if we want to verify
Is servlet a controller?
what is the different between a servlet and a cgi? Why do you go for servlet rather than cgi?
Which HTTP method is non-idempotent?
What is the use of attribute in servlets?