struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joao Araujo <j...@wireless-networks.com>
Subject RE: html:errors location
Date Sat, 14 Dec 2002 04:23:30 GMT
thank you guys.

Joao,
>Joao,
>Did you do this?
>         <P>Username: <html:text property="username"/><html:errors
>property="username"/></P>
>         <P>Password: <html:password property="password"/><html:errors
>property="password"/></P
>
>Regards,
>
>Richard
>
> > -----Original Message-----
> > From: Joao Araujo [SMTP:joao@wireless-networks.com]
> > Sent: Friday, December 13, 2002 10:45 AM
> > To:   struts-user@jakarta.apache.org
> > Subject:      html:errors location
> >
> > Hi,
> >
> >       According to the TIP " Don't settle for <html:error/> " at
> > http://husted.com/struts/tips/index.html,
> >       from Ted Husted I can add  an error  by the side of the property
> > that
> > caused it.
> >
> >       something like this:
> >               To specify that this message is for the "username" property,
> > we would
> > code this instead:
> >
> >               errors.add(
> >                 "username", new ActionError("error.username.required"));
> >
> >               If we specify a property, we can use the <html:errors/> tag
> > (or any of
> > the alternatives) like this:
> >
> >               <P>Username: <html:text property="username"/></P>
> >               <P>Password: <html:password property="password"/></P>
> >
> >       I Did exactly this. Unfortunately, the error does not appear by the
> > side
> > of the input. But,
> >       It appears at page top when I use the <html:errors/>  tag.
> >
> >       What should I do to put it by the side of an input (<html:text
> > property..../>)?
> >
> >
> >       Thanks in advance.
> > Joao,
> >
> >
> > --
> > To unsubscribe, e-mail:
> > <mailto:struts-user-unsubscribe@jakarta.apache.org>
> > For additional commands, e-mail:
> > <mailto:struts-user-help@jakarta.apache.org>
>
>--
>To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
>For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


--
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