Click to See Complete Forum and Search --> : go to the previous jsp page


mariokumar
12-16-2005, 04:06 AM
Hi frinds,

I have a jsp page, contain a list of records which is retrieved from the database, if i select one record it goes to another page and display all the
details of that record.from this detail page if i click a button i want goto the
prevoius page, and should display list of records.i tried with java scrit it is working but not displaying the records,can any one suggest a solution

Thanks
Mario

ger2006
12-16-2005, 04:38 AM
what about

javascript:history.back()

mariokumar
12-16-2005, 04:41 AM
the problem is i want to list of records which was exhisisting in the first page

BigDog
12-16-2005, 09:10 AM
Values like that are stored in the page scope. If you want them to be accessable elsewhere, the best way is to save the value into a bean in the session. Remeber that pages are stateless - you can't remeber a page you were at before, therfore you need to save that informaiton somewhere, which would be either a session, or persisting to a data store of some kind.