Yes, this is exactly what I'm doing. I've got code that uses reflection to automatically populate the objects on the Server so that I don't have to write code to do this.
----- Original Message ----- From: "QM" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Friday, September 10, 2004 7:35 PM Subject: Re: 'referer' header contains Servlet path, not referrer > 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] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
