Shyam Singh wrote: .... we cannot add it to request attribute.
never add a session object to the request scope ... it simply doesn't make any sense. Request scope only lasts until a request has completed and the response has been sent to the user.
session scope lasts as long as the user remains active over multiple requests.
JDBCSupport - An easy to use, light-weight JDBC framework -
As soon as an user connects to the server through a browser, a session is created and the session lasts until the user finishes his transaction or the browser is closed or a particluar time is set for session lifetime...
So there is no need to worry about what happens to the session if the user moves from one page to the next............
only the request object will persist for that particular request only.
To err is human,
To forgive is not company policy
subject: How to navigate Session obj. from one jsp to other