struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From S├ębastien GALLET <sebast...@gallet.info>
Subject Missing field name using validator
Date Wed, 09 Mar 2005 14:37:50 GMT
Hi
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 :
<logic:messagesPresent>
  <bean:message bundle="person" key="errors.header"/>
  <ul>
  <html:messages bundle="person" id="error">
     <li><bean:write bundle="person" name="error"/></li>
  </html:messages>
  </ul>
  </hr>
</logic:messagesPresent>

Any idea ?
Sebastien

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message