This isn't an issue with validating. This is formatting your view based on the ActionErrors object generated by validation.
Struts nightly builds has logic:messagesPresent and logic:messagesNotPresent jsp tags to control formating. The Struts Validator before the 1/14/2002 build posted on http://home.earthlink.net/~dwinterfeldt have a validator:messagesExist jsp tag. Below are a couple of examples. The 'validator:messagesExist property="lastName"' will evaluate the its body if there is an error for the lastName property. Messages Exist Tag A simple logic tag that checks for an object in the request attribute under the default or specified message key. If there is an object, then the body of the tag is evaluated. <validator:messagesExist> <ul> <validator:messages id="message"> <li><bean:write name="message"/></li> </validator:messages> </ul><hr> </validator:messagesExist> <validator:messagesExist property="lastName"> <ul> <validator:messages id="message" property="lastName"> <li><bean:write name="message"/></li> </validator:messages> </ul><hr> </validator:messagesExist> David --- Saeid Zoonematkermani <[EMAIL PROTECTED]> wrote: > Hello, > > I am using struts 1.0.2 and have been looking at > ways to do more than the > default validation provides. I have downloaded and > tested "Struts > Validator" package but it does not seem to provide > what we are looking for. > > Here is the problem... After the user submits the > form and it fails > validation, we would like to some how distinguish > the input field in > question by either changing the background color of > the cell, the font > color, putting an asterisk in front of it, or some > thing of that flavor. > > I can't find in the docs or the archives any mention > of this way of > handling validation. So is this possible in struts > 1.0.2? Did I miss some > thing in the "Struts Validator" package? Is there > another package that > might provide it? > > Any help, advice, and/or exmples would be greatly > appreciated. Thanks, > > - Saeid > > > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > __________________________________________________ Do You Yahoo!? Yahoo! Greetings - Send FREE e-cards for every occasion! http://greetings.yahoo.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>