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 |
What is the GenericServlet class?
What is servlet looping or chaining?
Can we override servlet service method?
can it possible to validate form field before execution of a servlet service method if yes how??
How httpservlet is different from the genericservlet?
Given the request path below, which are context path, servlet path and path info?
hi.... i have problem in running of servlet. i am using Tomcat server in my pc.. The problem is when i am click on strat it will display like below FAIL - Application at context path /first could not be started.. How i can slove the problem.. help plz
What are the objects involved when a servlet receives a call from client?
How can the referrer and the target urls be used in servlet?
what is the difference between Servlet and JSP?Advantage of JSP over Servelt?Any concept present in JSP which we cant implement in Servlet?
31 Answers ABC, Apere, AZTEC, CTS, CybAge, iFlex, Impact Systems, Sara, TCS,
how this statement works..? public void service(HttpServletRequest request,HttpServletResponse response)
How forward () method is different from send redirect () method?