Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Apache Tomcat »

Re: Re-executing a servlet request

David Smith

2006-12-21

Replies:

So you want to effectively save the parameters from the original request
to page 1 and then use them when you come back to page 1. I can see two
options:

1. Sessionless -- each page propogates the original params as hidden
fields until you return to page 1 where it makes use of them.
2. With sessions -- the original params are stored in the session and
page 1 uses them in the absence of form params -- ie when completing the
process.

--David

David Kerber wrote:
> Ok, I'll try:
>
> My app is started with a .jsp. On it the user enters a location ID.
> When they click the submit button, it sends the request to a servlet
> (call it page 1) which brings up information from a database about
> that location, and gives them the option to make changes to the
> information for the location, stepping through 3 more pages, all from
> servlets. After the last page is done, I want to return to the first
> servlet page (page 1) with the same request parameters as it was
> originally requested with, so that the site information is
> re-requested from the database, and they will then see the same site,
> but with the data changed to reflect what they just entered.
>
> All of this works right now, except that I haven't figured out how to
> return to servlet page 1 with the same request parameters it had the
> first time, *as if* it had been requested from the jsp, but without
> them needing to re-enter the location ID and clicking on the submit
> button again. How can I do that?
>
> Thanks for any suggestions!
> Dave
>
>
> Hassan Schroeder wrote:
>
>> On 12/21/06, David Kerber <dckerber@(protected):
>>
>>> Nobody has a suggestion about this?
>>
>>
>> Sure. I suggest you rephrase what you're actually trying to accomplish,
>> because the original made utterly no sense to me :-)
>>
>> FWIW,
>
>
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@(protected)
> To unsubscribe, e-mail: users-unsubscribe@(protected)
> For additional commands, e-mail: users-help@(protected)
>


---------------------------------------------------------------------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.