here's a possible approach

1.have a class that reads the form a line at a time and out.println(only
one)
2.then when you have validated the data(good-bad)<I expect that its probably
in a hashtable> simply stick it back into the relevant place with <!>
meanining try again

This means that you will create an instance of "file parser" in the browser
blah ,blah,blah

darien

>From: "Lambert, Stephen : CO IR" <[EMAIL PROTECTED]>
>Reply-To: "A mailing list for discussion about Sun Microsystem's Java
>        Servlet API Technology." <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Servlet Design Question
>Date: Wed, 23 Aug 2000 09:05:39 -0700
>
>How do you re-display an HTML form without using *out.println* statements?
>
>Scenario:
>I have a 300 field HTML form that posts data to an AS/400 file, then sends
>back a simple acknowledgement web page using *out.println* statements.
>
>Now I have been asked to validate up to 10 fields all against a single
>secondary AS/400 file, and if there are errors to re-display the original
>web form with the 300 field data enter by the user, plus alert the user of
>the fields with errors.
>
>My question is what would be the proper approach to re-displaying the user
>entered data with the errors without using an enormous amount of
>*out.println* statements?
>
>Also, the HTML web page has a META tag that prevents the web page from
>caching and allowing the viewing of prior users data.
>This code I would like to continue using.
>
>
>One final note, the 300 field form could be broken up into 6 seperate web
>pages.
>However, this would still require allot of *out.println* statements!
>
>There has to be a better way!
>
>Thanks for your help!
>Stephen.
>
>___________________________________________________________________________
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff SERVLET-INTEREST".
>
>Archives: http://archives.java.sun.com/archives/servlet-interest.html
>Resources: http://java.sun.com/products/servlet/external-resources.html
>LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to