The one other thing I've seen people do is add a companion field to the ActionForm for each field they want to mark this way, and then test that in the same way. But the messagesPresent tag is obviously less work!
Off topic, but a related idea is to write the label for a required field in a different font when it is null. So, the required field start out in red or maroon, but turn black if the form is retruned for validation, and they pass. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel +1 716 737-3463 -- http://www.husted.com/struts/ David Winterfeldt wrote: > > If you are using one of the more recent nightly builds > there is a logic tag you could use. > > <logic:messagesPresent property="username"> > // insert image here > </logic:messagesPresent> > <html:text property="username" size="20" > maxlength="100"/> > > David > > --- Angela Saval <[EMAIL PROTECTED]> wrote: > > I would like to be able to place an icon next to > > each field in a form that > > did not validate correctly. Is this integrated into > > the html input fields > > tags some how? If so, I am not seeing this. For > > example, I would like > > something like > > > > <html:text property="username" size="20" > > maxlength="100" > > erroricon="/images/error.jpg"/> > > > > The only way that I see of doing something like this > > now is to extend each > > of the html tag definitions to include an error icon > > attribute since I see > > no way to extend a tag definition. > > > > Any insight on how others have solved this problem > > would be appreciated. > > > > Angela > > > > -- > > To unsubscribe, e-mail: > > <mailto:[EMAIL PROTECTED]> > > For additional commands, e-mail: > > <mailto:[EMAIL PROTECTED]> > > > > __________________________________________________ > Do You Yahoo!? > Buy the perfect holiday gifts at Yahoo! Shopping. > http://shopping.yahoo.com > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

