HI,

You can write your own validate function or you can use the validation
framework. In any case no validation is performed on any field unless
you specify it. see
http://struts.apache.org/struts-action/faqs/validator.html for further
details.

mvg,
Jasper

On 6/26/06, Jennifer Jacobs <[EMAIL PROTECTED]> wrote:

I'm using the Struts Validator framework.

I have a form with two buttons on it, one that calculates a subtotal and one
that submits the form.  I have validation set to false, because I don't want
to validate the shipping address/email/phone number/etc when they calculate
the subtotal.  So, I do a form.validate() when the submit button is hit.

However, I DO want to validate the values they put in for quantity, etc.  I
know I can write validation for it all, but then my validation is in two
places - is there any way to "tell" it to validate JUST a certain set of
fields?

Thanks in advance,
Jennifer
--
View this message in context: 
http://www.nabble.com/Validate-just-certain-fields-t1850707.html#a5052596
Sent from the Struts - User forum at Nabble.com.


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



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

Reply via email to