aspose file tools*
The moose likes JSP and the fly likes How to navigate Session obj. from one jsp to other Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "How to navigate Session obj. from one jsp to other" Watch "How to navigate Session obj. from one jsp to other" New topic
Author

How to navigate Session obj. from one jsp to other

Shyam Singh
Greenhorn

Joined: Jul 25, 2009
Posts: 13
how to navigate Session obj. from one .jsp to other[/b] .... we cannot add it to request attribute.

senario -->

1st.html --> 1st.jsp -- > sendRedirect() --> 2nd.html --> 2nd.jsp --> so On .

I want to contiue the session all along ..

please help ... New to Jsp
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

Welcome to JavaRanch

Create a Session upon the user login . it will available to all your jsp and servlets. read this
Sebastian Janisch
Ranch Hand

Joined: Feb 23, 2009
Posts: 1183
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 -
PrasannaKumar Sathiyanantham
Ranch Hand

Joined: Nov 12, 2009
Posts: 110
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to navigate Session obj. from one jsp to other
 
Similar Threads
Navigation from parent JSP to the same parent JSP
sendRedirect
Navigate web pages
Navigation from jsp to another JSP
Navigate from one mxml to another mxml