Java Mailing List Archive

http://www.gg3721.com/

Home » Struts Users Mailing List »

Couple of validation questions.

David C. Hicks

2008-11-25

Replies: Find Java Web Hosting

Author LoginPost Reply
1) Validating numeric fields.
I have a couple of numeric fields on a form, and I have configured the
"required" validator for them. If I leave the fields blank and submit
the form, there is no error. Instead, the fields end up with values of
0, each. Either there is no validation taking place, or the fact that
the Integer fields that receive the input have a value of 0 when there
is no input causes the validation to be incorrect. Thoughts?

2) Validating drop-down selections.
Is there a predefined validation that checks to make sure that some
selection has been made?


Thanks,
David


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 gg3721.com - Jax Systems, LLC, U.S.A.