You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Denise Mangano <De...@complusdata.com> on 2002/12/27 15:57:43 UTC

Question - Form Validation

Hi all :)

I'm not sure if these types of questions belong is this list??  I've seen
people post JSP and/or servlet questions, so I am assuming they do... ?

I am trying to figure the best way to do form validation with JSP.  I have a
JSP with a form that calls another JSP to process that form and display the
result.  I would like to add an intermediary page that displays all the user
input before the information is processed.  Before I get to this
intermediary page I want to make sure all fields are filled out and each
field fits the format it should be.  If a field is missing or incorrect, I
would like the same page to be reloaded, with red text next to the field
that needs to be corrected.

Just wondering if anyone had any suggestions of the best way to handle this.

Denise Mangano

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Question - Form Validation

Posted by Gary Gwin <to...@cafesoft.com>.
Denise,

Consider using the Jakarta Struts project. It is very popular and 
provides a framework for form validation and error handling.

    http://jakarta.apache.org/struts/

Gary

Denise Mangano wrote:

>Hi all :)
>
>I'm not sure if these types of questions belong is this list??  I've seen
>people post JSP and/or servlet questions, so I am assuming they do... ?
>
>I am trying to figure the best way to do form validation with JSP.  I have a
>JSP with a form that calls another JSP to process that form and display the
>result.  I would like to add an intermediary page that displays all the user
>input before the information is processed.  Before I get to this
>intermediary page I want to make sure all fields are filled out and each
>field fits the format it should be.  If a field is missing or incorrect, I
>would like the same page to be reloaded, with red text next to the field
>that needs to be corrected.
>
>Just wondering if anyone had any suggestions of the best way to handle this.
>
>Denise Mangano
>
>--
>To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
>For additional commands, e-mail: <ma...@jakarta.apache.org>
>
>  
>

-- 

Gary Gwin
http://www.cafesoft.com

*****************************************************************
*                                                               *
*   The Cafesoft Access Management System, Cams, is security    *
*   software that provides single sign-on authentication and    *
*   centralized access control for Apache, Tomcat, and custom   *
*   resources.                                                  *
*                                                               *
*****************************************************************



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Question - Form Validation

Posted by "Noel J. Bergman" <no...@devtech.com>.
Denise,

There are a number of ways to do it.  One is to build a Struts application.
Another is to have the form post back to itself.  If it likes the form data
(validates), then it can forward to the target page.  There are various
other solutions.

	--- Noel


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>