validation errors tag on output debug=xml

Dudley Butt <[email protected]> Thu, 10 Mar 2005 21:04:24 +0200
Newsgroups gmane.comp.java.strutscx.user
Message-ID <[email protected]>
Hi again,

1 - I finally have some sort of crude validation working, but I couldn't
get it to work without calling the validate method explicitly. I am
getting some action errors through to the debug=xml results. However,
all I'm getting back is the field name in action errors tag
************ACTIONERRORS********
<errors>
 <firstName/>
</errors>

Is this all we can get through at this stage? I dont know if its a
required error or a maxlength or minlength error. Is there something
else I need to add somehere?

2 - Also, I have an entry in my validation.xml as follows

depends=required,mask,minlength,maxlength

as long as the validation fails, all i get is the same key in the
action errors. how do u know which validation(required,mask etc)
failed, if u only get 1 key, i.e. the field name?

thx


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click