You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Day, Michael-IBM/TT" <Mi...@Nextel.com> on 2002/09/25 19:30:18 UTC

Struts Validator

I have the following in my validation.xml file.  I want to set the <arg0> value to a parameter that was passed in via a POSTed form.  If someone enters an invalid email, I'd like to say "invalid@blahnonexistent.notldisthislong is an invalid email address."  Is this possible?

		<form name="registrationForm">
			<field property="email"
					depends="required,email">
				<arg0	key="registrationForm.email" resource="false" />
			</field>
			<field property="password"
					depends="required">
				<arg0   key="prompt.password" />
			</field>
			<field property="password2"
					depends="required">
				<arg0   key="prompt.password2" />
			</field>
			<field property="fullName"
					depends="required">
				<arg0   key="prompt.fullName" />
			</field>
		 </form>

__________________________________________________
Michael Blake Day
Nextel Communications, Inc.
email: michael.day@nextel.com
desk: 678.966.4792 


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>