please help me!!! request param

hello everybody,

i have this problem :

i have a jsp file that has some download-links after clicking one link i must link to helping of servlet to onther jsp where the user has to accept the AGBs .

after accepting i have to continue with downloding.

the problem is that after clicking one download-link i send a param whith the path of file to be downloaded... in servlet i still have my

(path)param but in my AGBs-jsp is lost.

how can i get this param to know witch file must be downloaded?

plz help me if u can!!!

or may u have better idea how to solve this problem

thank u

[640 byte] By [golanblna] at [2007-10-3 1:25:40]
# 1

Request parameters obviously only last for one request.

If you have a confirmation page in the middle, then you have two requests happening. You need to make sure the parameter is retained between the two requests.

Couple of solutions

1 - store in session the link to download.

2 - pass it as a hidden variable. ie on the "confirm" page, put an <input type="hidden" value="..."> field on the page, so that when you submit the page, it resubmits the parameter with the same value.

Hope this helps,

evnafets

evnafetsa at 2007-7-14 18:23:06 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...