difference between request.getSession(false) or
request.getSession() and request.getSession(true)
Answers were Sorted based on User's Feedback
Answer / 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 |
hi actully i hav form columns with origin and destination names .as like as i need to create one more column with name amount. my requirement is when i select origin and destination columns automatically i need to get amount from database.how can i. please tel me with relative code
Where do you define dispatcherservlet?
What is the use of attribute in servlets?
What is the <load-on-startup> element?
Why is httpservlet declared abstract?
What is the purpose of dispatcherservlet properties?
what is servlet chaining?
What are different types of SessionTracking?
explain filters in java?
How to upload a file to the server using servlet?
What are the different ways we can maintain state between requests?
How can we refresh automatically when new data is entered into the database?