Re: persistence after the request response cycle

2004-09-19 Thread QM
On Sun, Sep 19, 2004 at 07:25:26PM +0100, ian stone wrote: : I'd like to extend the present setup so that after : receiving the 1st POST data, the servlet responds with : HTML page 2. HTML page 2 then returns form data via : POST to the same servlet. The servlet would then save : the accumulated

RE: persistence after the request response cycle

2004-09-19 Thread Craig Berry
The usual mechanism for this is to persist intermediate data to a session-scope object which is persisted after all data has been accumulated. Struts provides excellent support for this pattern. -Original Message- From: ian stone [mailto:[EMAIL PROTECTED] Sent: Sun 9/19/2004 11:25

RE: persistence after the request response cycle

2004-09-19 Thread Frank W. Zammetti (MLists)
The other common approach is to re-send the data for page 1 as hidden form fields with the page 2 form submission. That way, the second time the servlet is executed, it is getting all the required data as part of request. As a general rule (which is broken often for one reason or another!), if