struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Winterfeldt <dwinterfe...@yahoo.com>
Subject Re: Struts Validator help
Date Mon, 25 Feb 2002 22:55:33 GMT
It is keyed on the property, not the message resource
key.  So it would be the same as the property for you
html:text tag.

<html:errors property="email" />

This would represent getEmail/setEmail.

David

--- bilal@mindspring.com wrote:
> Hi,
> 
> I'm new to Struts and Struts Validator.  I have been
> able to setup struts and the validator package to
> work properly on my machine.  I'm having trouble
> however with getting and displaying the error
> message properly.  I can display them at the top of
> the page using <html:errors/> tag but I would like
> to be able to place the errors individually at
> different places in the page.  I tried      
> <html:errors
> property="registrationForm.email.displayname" /> but
> this doesn't seem to be working.  The line in the
> resource file is:
> "registrationForm.email.displayname=E-mail".  I
> think the key is not in the collection of errors. 
> Is there a way to see what keys are available in
> that collection.   I do not have specific
> error.propname=... entry in the resource file.  Is
> that needed?
> 
> Thank you.
> 
> Bill
> 
> --
> To unsubscribe, e-mail:  
> <mailto:struts-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:struts-user-help@jakarta.apache.org>
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com

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


Mime
View raw message