Thank you, I will try that out and see. I guess it is XWork, at least from what I can figure out from the documentation.
Chamara -----Original Message----- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Laurie Harper Sent: Wednesday, March 05, 2008 2:44 PM To: user@struts.apache.org Subject: Re: short-circuit="true" not working in field validator Chamara Gunaratne wrote: > Dave: > Thank you for your reply. I changed type attribute to "requiredstring". But > it doesn't help with the short-circuit problem. > > Yes, both the first name and last name validators fire successfully and the > regex is correctly evaluated. Just the short-circuit part is not working. > > For example, if I submit a blank first name field, I get both error > messages: "Please enter your first name" and "First Name may only contain > letters, spaces, dashes, or periods". > Cheers, AFAICT from the Validation documentation, it should be working as you expect. I would suggest turning logging up to DEBUG for Struts and/or XWork (probably XWork?) and see if you get anything that sheds light on what's going wrong. L. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __________ NOD32 2924 (20080305) Information __________ This message was checked by NOD32 antivirus system. http://www.eset.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]