You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by tk...@netcourrier.com on 2003/10/13 15:05:04 UTC
newby help
Hi,
I am a newby to velocity, that I am appreciating very much.
Now, I am trying to replace the tag :
<html:errors/> with $!errors.msgs() as suggested by Ted Husted in his book "Struts in action" (chapter 17 page 564).
Pb: when I enter a wrong userName or psswd in my logonForm, there is no error displayed.
Question : what is the best way to display error messages in a page as in struts, i.e by using the error.properties file and the equivalent of <html:errors/>
Thanks
Chris
-------------------------------------------------------------
NetCourrier, votre bureau virtuel sur Internet : Mail, Agenda, Clubs, Toolbar...
Web/Wap : www.netcourrier.com
Téléphone/Fax : 08 92 69 00 21 (0,34 TTC/min)
Minitel: 3615 NETCOURRIER (0,16 TTC/min)
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org
Re: newby help
Posted by Nathan Bubna <na...@esha.com>.
tkchris@netcourrier.com said
> I am a newby to velocity, that I am appreciating very much.
glad to hear it!
> Now, I am trying to replace the tag :
> <html:errors/> with $!errors.msgs() as suggested by Ted Husted
> in his book "Struts in action" (chapter 17 page 564).
>
> Pb: when I enter a wrong userName or psswd in my logonForm,
> there is no error displayed.
that should probably be $!errors.msgs or $!errors.getMsgs() you shouldn't
mix the short syntax with the full syntax.
if you haven't already, be sure you check out the velocity-tools documentation
at:
http://jakarta.apache.org/velocity/tools/index.html
a *lot* of progress has been made on the tools project since Ted's book was
written.
> Question : what is the best way to display error messages in a page
> as in struts, i.e by using the error.properties file and the equivalent of
> <html:errors/>
do what fits your purposes. if $errors.msgs and the error.properties file
works fine for you, then stick with it.
Nathan Bubna
nathan@esha.com
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org