How we can check in particular page the session will be
alive or not
Answer Posted / aseet padhi
U can use request.getSession(false); method in
HttpServletRequest interface.It returns the HttpSession
associated with this request or null if the request has no
valid session.
| Is This Answer Correct ? | 10 Yes | 3 No |
Post New Answer View All Answers
What is the difference between the getrequestdispatcher(string path) method of javax.servlet.servletrequest interface and javax.servlet.servletcontext interface?
Define servlet mapping?
What is the procedure of invoking different servlet in a different application?
What methods do you use in servlet - applet communication?
What is difference between get and post method?
What are the different methods involved in generic servlet?
Explain servlet life cycle?
How do we go with database connection and log4j integration in servlet?
Why do we need a constructor in a servlet if we use the init method?
Name the different ways of session tracking.
What is life cycle of Servlet?
What is the difference between Servlet Request and Servlet Context when calling a Request Dispatcher?
What are the different mode that servlets can be used?
How do you run a servlet?
What are different Authentication options available in Servlets.