velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nathan Bubna <>
Subject Re: newby help
Date Tue, 14 Oct 2003 01:39:24 GMT 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
a *lot* of progress has been made on the tools project since Ted's book was

> Question : what is the best way to display error messages in a page
> as in struts, i.e by using the file and the equivalent of
> <html:errors/>

do what fits your purposes.  if $errors.msgs and the file
works fine for you, then stick with it.

Nathan Bubna

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

View raw message