RE: Question - Form Validation

2002-12-31 Thread Denise Mangano
Noel,

Thanks for the offer.  I wanted to respond sooner - but email was down : (
The rush is definitely there, but my employer realizes the importance of
getting it done right, so they are being  patient.

I think I am making some progress - I have found some resources on the
subject.  Currently the action of my form calls a controller JSP page.
This page uses a Bean that I created.  The bean uses the same fields as the
form and performs all the validation.  The controller JSP checks if validate
then forward to processing page, else retry.  I have written all the code
for the form validation and will be testing it today.

I will be posting if I run into any problems.  Hopefully your offer still
stands if it comes down to that :)

Denise Mangano
Help Desk Analyst
Complus Data Innovations, Inc.


-Original Message-
From: Noel J. Bergman [mailto:[EMAIL PROTECTED]] 
Sent: Saturday, December 28, 2002 9:57 PM
To: Tomcat Users List
Subject: RE: Question - Form Validation


Denise,

Sounds as if you are in a huge hurry.  Do you mind embedding some simple
scriptlets in your JSP page, or are you going to hold out of purity?  If you
want to contact me off-line, I can give you a telephone number and walk you
through some of it.  I am not in the office, but I might be able to grab
some code off one of the live servers and clean it up for you.

Yes, I would suggest that you create a Java Bean with the same fields as the
form.  Add some methods to the bean so that validation is done in the bean,
not by the page.

--- Noel

-Original Message-
From: Denise Mangano [mailto:[EMAIL PROTECTED]]
Sent: Saturday, December 28, 2002 15:31
To: 'Tomcat Users List '
Subject: RE: Question - Form Validation


It seems to me that Struts is more for large scale enterprise webapps.
Eventually once my webapp is up and running in a production environment, if
our project seems to be more popular than expected, then updates will be
necessary and alternative approaches will be considered.

In the meantime, our webapp is for less than medium size organization, the
site is pretty simple - just select the fee you are paying and provide the
cc info for processing - all this for a pretty stable number of users (for
the time being).

Can anyone provide links to any resources for form validation with JSP - not
using Struts?  I have a couple of books, but none seem to go into enough
detail..

Thanks :)
Denise

-Original Message-
From: Noel J. Bergman
To: Tomcat Users List
Sent: 12/27/2002 11:34 PM
Subject: RE: Question - Form Validation

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:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

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




RE: Question - Form Validation

2002-12-29 Thread Jacob Hookom
Why not browse the Jakarta Validator libs?  They are integrated into
Struts.

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]] 
Sent: Saturday, December 28, 2002 11:59 PM
To: ''Tomcat Users List ' '
Subject: RE: Question - Form Validation

 
Hi -

I was researching this very topic as an extension to using regular
expressions for form validation, and I found this on sourceforge.  It
might
be worth a look:

http://formproc.sourceforge.net/

I've never used it, but I plan to give it a look later.

John

-Original Message-
From: Denise Mangano
To: 'Tomcat Users List '
Sent: 12/28/02 8:09 PM
Subject: RE: Question - Form Validation

Any web site references? I'm pressed for time so can't wait for item to
be
shipped and no local bookstores have it in stock...

Also, if I am to have my JSP form post back to itself to validate, I
would
need to employ Java Beans for this - is that correct?

Sorry - I'm a newbie :)

Thanks! 

-Original Message-
From: Paul Campbell
To: Tomcat Users List
Sent: 12/28/2002 3:29 PM
Subject: RE: Question - Form Validation

Advanced Java Server Pages by Geary (Prentice Hall 2001)

At 03:30 PM 12/28/2002 -0500, you wrote:
It seems to me that Struts is more for large scale enterprise webapps.
Eventually once my webapp is up and running in a production
environment, if
our project seems to be more popular than expected, then updates will
be
necessary and alternative approaches will be considered.

In the meantime, our webapp is for less than medium size organization,
the
site is pretty simple - just select the fee you are paying and provide
the
cc info for processing - all this for a pretty stable number of users
(for
the time being).

Can anyone provide links to any resources for form validation with JSP
- not
using Struts?  I have a couple of books, but none seem to go into
enough
detail..

Thanks :)
Denise

-Original Message-
From: Noel J. Bergman
To: Tomcat Users List
Sent: 12/27/2002 11:34 PM
Subject: RE: Question - Form Validation

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:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

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


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

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

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


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




RE: Question - Form Validation

2002-12-29 Thread Turner, John
 
Thanks for the tip...didn't know anything about them.  I found that FormProc
package while investigating Jakarta Regexp.

As an aside, is there a need for Regexp or ORO now that J2SE 1.4 has
java.util.regex?  I'm no regexp guru by any means, I'm just curious.  My
development skills are bad enough without having to worry about keeping
track of packages/libraries that aren't part of J2SE/J2EE.

John


-Original Message-
From: Jacob Hookom
To: 'Tomcat Users List'
Sent: 12/29/02 3:05 AM
Subject: RE: Question - Form Validation

Why not browse the Jakarta Validator libs?  They are integrated into
Struts.

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]] 
Sent: Saturday, December 28, 2002 11:59 PM
To: ''Tomcat Users List ' '
Subject: RE: Question - Form Validation

 
Hi -

I was researching this very topic as an extension to using regular
expressions for form validation, and I found this on sourceforge.  It
might
be worth a look:

http://formproc.sourceforge.net/

I've never used it, but I plan to give it a look later.

John

-Original Message-
From: Denise Mangano
To: 'Tomcat Users List '
Sent: 12/28/02 8:09 PM
Subject: RE: Question - Form Validation

Any web site references? I'm pressed for time so can't wait for item to
be
shipped and no local bookstores have it in stock...

Also, if I am to have my JSP form post back to itself to validate, I
would
need to employ Java Beans for this - is that correct?

Sorry - I'm a newbie :)

Thanks! 

-Original Message-
From: Paul Campbell
To: Tomcat Users List
Sent: 12/28/2002 3:29 PM
Subject: RE: Question - Form Validation

Advanced Java Server Pages by Geary (Prentice Hall 2001)

At 03:30 PM 12/28/2002 -0500, you wrote:
It seems to me that Struts is more for large scale enterprise webapps.
Eventually once my webapp is up and running in a production
environment, if
our project seems to be more popular than expected, then updates will
be
necessary and alternative approaches will be considered.

In the meantime, our webapp is for less than medium size organization,
the
site is pretty simple - just select the fee you are paying and provide
the
cc info for processing - all this for a pretty stable number of users
(for
the time being).

Can anyone provide links to any resources for form validation with JSP
- not
using Struts?  I have a couple of books, but none seem to go into
enough
detail..

Thanks :)
Denise

-Original Message-
From: Noel J. Bergman
To: Tomcat Users List
Sent: 12/27/2002 11:34 PM
Subject: RE: Question - Form Validation

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:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

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


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

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

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


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

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




RE: Question - Form Validation

2002-12-28 Thread Denise Mangano
It seems to me that Struts is more for large scale enterprise webapps.
Eventually once my webapp is up and running in a production environment, if
our project seems to be more popular than expected, then updates will be
necessary and alternative approaches will be considered.

In the meantime, our webapp is for less than medium size organization, the
site is pretty simple - just select the fee you are paying and provide the
cc info for processing - all this for a pretty stable number of users (for
the time being).

Can anyone provide links to any resources for form validation with JSP - not
using Struts?  I have a couple of books, but none seem to go into enough
detail..

Thanks :)
Denise

-Original Message-
From: Noel J. Bergman
To: Tomcat Users List
Sent: 12/27/2002 11:34 PM
Subject: RE: Question - Form Validation

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:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

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




RE: Question - Form Validation

2002-12-28 Thread Paul Campbell
Advanced Java Server Pages by Geary (Prentice Hall 2001)

At 03:30 PM 12/28/2002 -0500, you wrote:
It seems to me that Struts is more for large scale enterprise webapps.
Eventually once my webapp is up and running in a production environment, if
our project seems to be more popular than expected, then updates will be
necessary and alternative approaches will be considered.

In the meantime, our webapp is for less than medium size organization, the
site is pretty simple - just select the fee you are paying and provide the
cc info for processing - all this for a pretty stable number of users (for
the time being).

Can anyone provide links to any resources for form validation with JSP - not
using Struts?  I have a couple of books, but none seem to go into enough
detail..

Thanks :)
Denise

-Original Message-
From: Noel J. Bergman
To: Tomcat Users List
Sent: 12/27/2002 11:34 PM
Subject: RE: Question - Form Validation

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:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

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


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




RE: Question - Form Validation

2002-12-28 Thread Denise Mangano
Any web site references? I'm pressed for time so can't wait for item to be
shipped and no local bookstores have it in stock...

Also, if I am to have my JSP form post back to itself to validate, I would
need to employ Java Beans for this - is that correct?

Sorry - I'm a newbie :)

Thanks! 

-Original Message-
From: Paul Campbell
To: Tomcat Users List
Sent: 12/28/2002 3:29 PM
Subject: RE: Question - Form Validation

Advanced Java Server Pages by Geary (Prentice Hall 2001)

At 03:30 PM 12/28/2002 -0500, you wrote:
It seems to me that Struts is more for large scale enterprise webapps.
Eventually once my webapp is up and running in a production
environment, if
our project seems to be more popular than expected, then updates will
be
necessary and alternative approaches will be considered.

In the meantime, our webapp is for less than medium size organization,
the
site is pretty simple - just select the fee you are paying and provide
the
cc info for processing - all this for a pretty stable number of users
(for
the time being).

Can anyone provide links to any resources for form validation with JSP
- not
using Struts?  I have a couple of books, but none seem to go into
enough
detail..

Thanks :)
Denise

-Original Message-
From: Noel J. Bergman
To: Tomcat Users List
Sent: 12/27/2002 11:34 PM
Subject: RE: Question - Form Validation

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:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

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


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

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




RE: Question - Form Validation

2002-12-28 Thread Jason Pyeron
your general concept here:

validate page parameters

is valid - redirect to processing page

display form
 display default values for fields
 display form hints for invalid data

if you don't have time to learn/implement this you might want to consider 
outsourcing your problem.

typically one would use a tag library to do this.

-Jason Pyeron

-- 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-   -
- Jason Pyeron   http://www.pyerotechnics.com   -
- Owner  Lead  Pyerotechnics Development, Inc. -
- +1 410 808 6646 (c)   500 West University Parkway #1S -
- +1 410 467 2266 (f)   Baltimore, Maryland  21210-3253 -
-   -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

This message is for the designated recipient only and may contain 
privileged, proprietary, or otherwise private information. If you
have received it in error, purge the message from your system and 
notify the sender immediately.  Any other use of the email by you 
is prohibited.


On Sat, 28 Dec 2002, Denise Mangano wrote:

Any web site references? I'm pressed for time so can't wait for item to be
shipped and no local bookstores have it in stock...

Also, if I am to have my JSP form post back to itself to validate, I would
need to employ Java Beans for this - is that correct?

Sorry - I'm a newbie :)

Thanks! 

-Original Message-
From: Paul Campbell
To: Tomcat Users List
Sent: 12/28/2002 3:29 PM
Subject: RE: Question - Form Validation

Advanced Java Server Pages by Geary (Prentice Hall 2001)

At 03:30 PM 12/28/2002 -0500, you wrote:
It seems to me that Struts is more for large scale enterprise webapps.
Eventually once my webapp is up and running in a production
environment, if
our project seems to be more popular than expected, then updates will
be
necessary and alternative approaches will be considered.

In the meantime, our webapp is for less than medium size organization,
the
site is pretty simple - just select the fee you are paying and provide
the
cc info for processing - all this for a pretty stable number of users
(for
the time being).

Can anyone provide links to any resources for form validation with JSP
- not
using Struts?  I have a couple of books, but none seem to go into
enough
detail..

Thanks :)
Denise

-Original Message-
From: Noel J. Bergman
To: Tomcat Users List
Sent: 12/27/2002 11:34 PM
Subject: RE: Question - Form Validation

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:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

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


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

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




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




RE: Question - Form Validation

2002-12-28 Thread Noel J. Bergman
Denise,

Sounds as if you are in a huge hurry.  Do you mind embedding some simple
scriptlets in your JSP page, or are you going to hold out of purity?  If you
want to contact me off-line, I can give you a telephone number and walk you
through some of it.  I am not in the office, but I might be able to grab
some code off one of the live servers and clean it up for you.

Yes, I would suggest that you create a Java Bean with the same fields as the
form.  Add some methods to the bean so that validation is done in the bean,
not by the page.

--- Noel

-Original Message-
From: Denise Mangano [mailto:[EMAIL PROTECTED]]
Sent: Saturday, December 28, 2002 15:31
To: 'Tomcat Users List '
Subject: RE: Question - Form Validation


It seems to me that Struts is more for large scale enterprise webapps.
Eventually once my webapp is up and running in a production environment, if
our project seems to be more popular than expected, then updates will be
necessary and alternative approaches will be considered.

In the meantime, our webapp is for less than medium size organization, the
site is pretty simple - just select the fee you are paying and provide the
cc info for processing - all this for a pretty stable number of users (for
the time being).

Can anyone provide links to any resources for form validation with JSP - not
using Struts?  I have a couple of books, but none seem to go into enough
detail..

Thanks :)
Denise

-Original Message-
From: Noel J. Bergman
To: Tomcat Users List
Sent: 12/27/2002 11:34 PM
Subject: RE: Question - Form Validation

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:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Question - Form Validation

2002-12-28 Thread Turner, John
 
Hi -

I was researching this very topic as an extension to using regular
expressions for form validation, and I found this on sourceforge.  It might
be worth a look:

http://formproc.sourceforge.net/

I've never used it, but I plan to give it a look later.

John

-Original Message-
From: Denise Mangano
To: 'Tomcat Users List '
Sent: 12/28/02 8:09 PM
Subject: RE: Question - Form Validation

Any web site references? I'm pressed for time so can't wait for item to
be
shipped and no local bookstores have it in stock...

Also, if I am to have my JSP form post back to itself to validate, I
would
need to employ Java Beans for this - is that correct?

Sorry - I'm a newbie :)

Thanks! 

-Original Message-
From: Paul Campbell
To: Tomcat Users List
Sent: 12/28/2002 3:29 PM
Subject: RE: Question - Form Validation

Advanced Java Server Pages by Geary (Prentice Hall 2001)

At 03:30 PM 12/28/2002 -0500, you wrote:
It seems to me that Struts is more for large scale enterprise webapps.
Eventually once my webapp is up and running in a production
environment, if
our project seems to be more popular than expected, then updates will
be
necessary and alternative approaches will be considered.

In the meantime, our webapp is for less than medium size organization,
the
site is pretty simple - just select the fee you are paying and provide
the
cc info for processing - all this for a pretty stable number of users
(for
the time being).

Can anyone provide links to any resources for form validation with JSP
- not
using Struts?  I have a couple of books, but none seem to go into
enough
detail..

Thanks :)
Denise

-Original Message-
From: Noel J. Bergman
To: Tomcat Users List
Sent: 12/27/2002 11:34 PM
Subject: RE: Question - Form Validation

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:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

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


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

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

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




Re: Question - Form Validation

2002-12-27 Thread Gary Gwin
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:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]

 


--

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:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Question - Form Validation

2002-12-27 Thread Noel J. Bergman
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:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]