Hello Everyone,
I have some doubt in session management in
JSP.
In JSP we can get session object by defining in "session = "true " " in the page directive.
Taking some cases we used to do in
servlet :
1.) request.getSession(true)
In servlet it says to allocate a new session object to the request if there is no session object corresponding this request. How would we do this in JSP ?
2.) request.getSession(false)
In servlet it says to use the already existing session object corresponding to this request, in case not present, do not allocate a new session object to this request. How would we do this in JSP ?