velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben <newread...@gmail.com>
Subject Re: Omit square brackets in ErrorsTool
Date Tue, 19 Oct 2004 10:19:25 GMT
Thanks Shinobu, it outputs the error messages as expected (no brackets).

Ben

On Tue, 19 Oct 2004 17:57:49 +0900, Shinobu Kawai
<shinobu.kawai@gmail.com> wrote:
> 
> Hi Ben,
> 
> > I don't use errors.(header|footer|prefix|suffix) and I don't have
> > brackets in my messages.
> Okay.
> 
> > I use the following code to show the error messages:
> >
> > In my action:
> >
> > ActionMessages errors = new ActionMessages();
> > errors.add(ActionMessages.GLOBAL_MESSAGE,
> >    new ActionMessage("errors.username");
> > saveErrors(request, errors);
> >
> > In my VM page:
> >
> > $errors.username
> There you have it.  You're rendering the whole set of errors.  For
> example uses of your error messages, take a look at VM_global_library.vm.
> 
> > How do I use the errors.(prefix|suffix)? In my properties file I have them as:
> >
> > errors.prefix=<div class="red">
> > errors.suffix=</div>
> >
> > But ErrorsTool doesn't pick them up.
> Yeah, I just found that out and filed a bugzilla report and patch:
>     http://issues.apache.org/bugzilla/show_bug.cgi?id=31768
> 
> 
> 
> Best regards,
> -- Shinobu Kawai
> 
> --
> Shinobu Kawai <shinobu.kawai@gmail.com>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: velocity-user-help@jakarta.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


Mime
View raw message