struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Johannes Wolfgang Woger <jwwo...@chello.at>
Subject Re: Validation-Substituting Values Question
Date Wed, 05 May 2004 19:17:27 GMT


David Erickson wrote:

>Hi I am using some ValidatorActionForms.. here's an example of my validation
>mapping:
>
><form name="/admin/updateUser">
>
><field property="user.email" depends="required,email">
>
><msg name="email" key="error.email.format"/>
>
><arg0 key="(How do I insert the value of that variable here?!)"
>resource="false"/>
>
></field>
>
></form>
>
>  
>
say  <arg0   key="name.of.my.email"/>

than in your Applicaltinresources.properies:

name.of.my.email=" this email"
error.email.format="has a wrong format"

>
>my message looks like error.email.format={0} is not a valid e-mail address.
>
>What I'm wondernig is how do I substitute the actual value they inputted
>into the message using the validate.xml?  I know I can do it easily if I
>hand validate it in the forms validate method.. but I'm sure there has to be
>a way to do it like this!  Any help greatly appreciated.
>
>-David
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>For additional commands, e-mail: user-help@struts.apache.org
>
>
>  
>


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


Mime
View raw message