On Fri, Sep 10, 2004 at 11:19:09AM +0530, Keith Hankin wrote:
: Here's the scenario: I am getting input data from the user and have
: determined that the user has made an error. I want to redisplay the last
: page so they can fix the errors.

Someone mentioned Struts as a solution.  That, in and of itself, is too
heavy a solution; but you can borrow some of those ideas:

Setup your form to pull data from request-scope vars.

- user goes to page first time: vars are empty, fields are blank

- user fills out some fields and clicks "submit" button: at least
  some fields are populated

- the servlet checks the form (based on request-scoped vars).  If some
  are missing, dispatch (not redirect!) to an error page.

- user sees form, some fields are prepopulated based on the information
  still in the request from when they clicked "submit"

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to