struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Ashworth <>
Subject Re: Changing the validator messages key
Date Wed, 12 Mar 2003 17:56:52 GMT
I've dug a little deeper now and I'd like to rephrase my question...

When retrieving messages in a JSP with the <html:messages> tag, you can specify a
property.  This property is different for every field that fails validation, but
I would like to specify one common property in which to store all of my
validation errors.  As it is, the only way I can display validation errors is
with the generic <html:messages> tag.  However, this can potentially print out
more than just validator errors.  I would like to use the property attribute like
so: <html:messages property="ValidationErrors">, which would print out all errors
generated by the validator.  Where can I specify the "ValidationErrors" property
in the validator config files in order to achieve this?


Justin Ashworth

On Wed, 12 Mar 2003 11:41 , Justin Ashworth> sent:

>It looks to me like all validator messages get stuck in the request with the
>org.apache.struts.action.ERROR key.  Is there a way to change this attribute name
>to, say, ValidationErrors?  I have looked through all of the validator
>documentation I can find and still wasn't able to figure out how to do this.
>Thanks much,

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message