A very successful approach I've used is to provide the user
only pick lists or combo boxes (HTML OPTION lists) to select
the values from; the servlet creates the page dynamically,
using the table values as the options list.
I've also, in dedicated client apps, built it so a choice of
one option "switched" or requeried the other selections to
valid contents based on the first selection. That limits the
number of invalid entries tremendously and helps data
normalization.
On Friday, September 10, 1999 4:42 PM, Jeff Sahol
[SMTP:[EMAIL PROTECTED]] wrote:
> > Hello:
> > I have a servlet that displays six required input fields
> > to a user. When
> the user clicks
> > the submit button, the values entered by the user are
> > validated against a
> table. If they
> > are not valid, a page is displayed that points out the
> > invalid values. In
> order for the
> > user to correct his value, the user has to click the
> > browsers back button.
> Is it possible
> > to have a message box popup in the same page ( page where
> > user enters the
> values ) that
> > will display the invalid values and if the values are
> > valid move on to the
> next page. In
> > this way the user does not have to use the back button
> > when invalid values
> are entered.
> > Any suggestions/ideas would be appreciated.
> > Thanks,
> > J
> I have done something like this via frames. Set the TARGET
> to be a small
> "status line" frame at the bottom of the screen, and
perform
> your validation
> and updates there. If there's an error or validation
> failure, you haven't
> moved from the main window that the user entered the info
> in, and they can
> fix it. If it succeeds, send back (in that small status
bar)
> an "OK" message
> and a Javascript command to refresh the main window with
the
> updated data.
>
>
____________________________________________________________
> _______________
> 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
___________________________________________________________________________
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