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 are the exceptions thrown by servlets? Why?
what is the different between a servlet and a cgi? Why do you go for servlet rather than cgi?
What are the common methods that are included in the http servlet class?
What is ServletConfig object?
What exactly are the functions of servlet?
What is a web application and what is it’s directory structure?
How to generate the server side programming and the advantages of it over the other languages?
What are the supporting protocol by HttpServlet ?
What are the differences between forward() method and sendredirect() methods?
What is servlet and its life cycle?
What is session tracking?
What is pure servlet?
Is java servlet still used?
How does java thread pool work?
Can we fetch the attributes related to a servlet on a different servlet?