difference between request.getSession(false) or
request.getSession() and request.getSession(true)
Answer Posted / msreekanth2004
request.getSession(true) or request.getSession():
If session is present it returns that session. Otherwise
it'll create a new session and return that.
request.getSession(false):
If session is present it returns that session. Otherwise it
return "null"
| Is This Answer Correct ? | 45 Yes | 2 No |
Post New Answer View All Answers
What are the two important api's in for servlets?
What is difference between jsp and servlet?
What is ServletConfig object?
What do you mean by cgi and what are its drawbacks?
Is it good idea to create servlet constructor?
What is Servlets and explain the advantages of Servlet life cycle?
Explain jsessionid and when is it created?
What is a servlet-to-servlet communcation?
I have a requirement Here we have a ResultSet object that will contain 50 records i need to print those recors in to a webpage(i.e; view according to MVC architectures that mybe servlet or jsp) . Here i need to print the records 10 per page that is 1 to 10 in page one and 11 to 20 in page two like remaining will be appeared in other pages we need to display those page numbers whenever we click on that page number we will go to that page and display 10 records like we will display 5 pages it is like this << 1 2 3 4 5 next >>
Servlet is pure java object or not?
Explain the jar and war files in servlet?
When should you prefer to use doget() over dopost()?
What are the different ways we can maintain state between requests?
Which interface must be implemented by all servlets?
What is servlet initializer?