struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Erickson" <>
Subject Validator-How to put the fields value in the resulting error message?
Date Tue, 03 Feb 2004 23:56:00 GMT
Hey all, still new with the validator.. I'm using the emailAddress validator
and I just want it to put the value of the field in the error message if its
not valid.. ie:
blah! is not a valid email address.

however I can't seem to make that happen.. here's what I've tried:
<form name="/getPassword">

<field property="userName" depends="required">

<arg0 key="User Name" resource="false"/>


<field property="emailAddress" depends="required,email">

<arg0 key="${emailAddress}" resource="false"/>



and in my properties file<li>{0} is an invalid e-mail address.</li>



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

View raw message