What are the methods in HttpSession and their use?

Answer Posted / niranjanravi

getId()
getLastAccessedTime()
getCreationTime()
putValue()
getAttribute()
setAttribute()

Is This Answer Correct ?    10 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the phases of servlet life cycle?

611


Are Servlets Thread Safe? How to achieve thread safety in servlets?

563


What is a generic servlet?

524


what is the different between a servlet and a cgi? Why do you go for servlet rather than cgi?

575


What do you mean by servlet?

724






What is servlet and how it works?

508


What is servlet lazy loading?

699


How to make sure a servlet is loaded at the application startup?

560


How to upload a file to the server using servlet?

536


What is string tokenizer?

632


request parameter how to find whether a parameter exists in the request object?

579


What are the type of protocols used in httpservlet?

616


Can you call a jsp from the servlet?

548


What is preinitialization of a servlet?

588


What is the element?

590