There is no Struts facility that does what you describe. This topic has come up fairly recently on this list, and I believe one or two patches have been submitted that address this issue. If you look through bugzilla you should be able to find them. Basically they entail a tailored version of the <html:text> tag for example, that detects if the field in error exists in the errors collection.
HTH, Mike Jasnowski -----Original Message----- From: Gregory F. March [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 8:44 AM To: Struts Users Mailing List Subject: html:error dynamic usage Boy, I'm just full of questions this morning! Musta been something in my oatmeal. :-) I would like to have a page that changes the color of the text associated with input fields when the data is entered incorrectly. For example, in the case of a "Username: _____" textfield input, if the user leaves the textfield blank, I would like to display "Username:" in red. Can I use the html:error facility or is there another component of struts that I should be looking at? Thanks, /greg -- Gregory F. March -=- http://www.gfm.net:81/~march -=- AIM:GfmNet --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]