Yes it's Friday indeed (TG).  For the benefit of you out there
searching the archives, you can accomplish this by using <html:errors
property="name" /> .  You can get more information here:
http://www.niallp.pwp.blueyonder.co.uk/HelpTagsErrorsAndMessages.html

Hubert

On 11/18/05, Aladin Alaily <[EMAIL PROTECTED]> wrote:
> Problem solved... must be Friday.
>
> Aladin
>
>
> > Hello,
> >
> > I am using struts 1.2.7 and am having trouble outputing error messages for
> > specific fields.
> >
> > If I have the following (in a form):
> >
> > <html:input property="name" />
> >
> > and in my action I do something like:
> >
> > messages.add("name", new ActionMessage("error.name.required"));
> > super.saveErrors(request.getSession(), messages);
> >
> >
> > Now, I would expect that the error message be outputted to the right of
> > the textfield (<input..> Error message here), but it doesn't.
> >
> > Does anyone know if things have changed in 1.2.7... or am I missing
> > something here?
> >
> > Thanks!
> > Aladin
> >
> >

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to