struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From S├ębastien GALLET <>
Subject Missing field name using validator
Date Wed, 09 Mar 2005 14:37:50 GMT
I've got a problem using validator in struts.

If I put the message-resources in global key (key not defined) 
everything works fine :
Validation failed.

   * The field name2 is required.

But if I put it in a custom key (ie person) the field name in error 
isn't initialize :

Validation failed.

   * The field is required.

Here is the code I use to retrieve errors :
  <bean:message bundle="person" key="errors.header"/>
  <html:messages bundle="person" id="error">
     <li><bean:write bundle="person" name="error"/></li>

Any idea ?

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

View raw message