How to retain request parameter values.......

Hi All

I am not able to find the solution of the following problem :

I have to buttons on a jsp page, one is working as back button and other is working as a next button, According to their name , when we click on these buttons they are retrieving records from the database(by sending new request to action class each time they click).

My problem is when i reach on the last record by traversing all records ,

and i click the next button again , i need to go on the first record .

But i m not finding any way to do this. bcz i m not able to retaining the url for

very first record as a new request is being made on each clickg so no way to keep the first record's url.

Any body has any idea please help me.

Thanx and regards.

Khush

[794 byte] By [chahalkhushwindera] at [2007-11-27 9:43:27]
# 1
Then store this url in a hidden input field?
BalusCa at 2007-7-12 23:48:48 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
Thanx for ur answer sir.but every time i will go to next button the value of the hidden field will be change according to url. hope u will get the thing.i want the very first url not the last one
chahalkhushwindera at 2007-7-12 23:48:48 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
Just don't overwrite it on every request? I.e. if (url == null) { save url }.You can also decide to store it in the HttpSession.
BalusCa at 2007-7-12 23:48:48 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
ok sirthanx i m going to try this
chahalkhushwindera at 2007-7-12 23:48:48 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...