struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Hardy <ahardy.str...@cyberspaceroad.com>
Subject Re: Validator doubt
Date Fri, 05 Mar 2004 11:43:56 GMT
On 03/05/2004 12:33 PM MOHAN RADHAKRISHNAN wrote:
> 
>          <field
>              property="cocNumber"
>              depends="integer">
> 			 <msg name="integer" key="error.coc.check"/>
>                  <arg0 key="label.coc.incident"/>
>           </field>
> 
> So if I input a value that is not a integer in this particular field I
> should see a message specified by <msg name="integer"
> key="error.coc.check"/>

Why are specifying a different msg key? There is a default one already 
'errors.integer', if you have put it in your ApplicationResources.

Adam
-- 
struts 1.1 + tomcat 5.0.16 + java 1.4.2
Linux 2.4.20 Debian


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


Mime
View raw message