File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes html:errors Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "html:errors" Watch "html:errors" New topic


Muni K Reddy
Ranch Hand

Joined: Aug 23, 2007
Posts: 74
Hi Guys,
Im new to struts and trying out a small application.

The application is simple. It has a html form which contains 3 fields say EmpName, EmpId, EmpPhone. I have have written the validation in the corresponding in the corresponding form bean.

Obviously, using <html:errors/> I can display an error message. In addition to this, I would like to actually highlight(changing the fields background colour) all the fields which has an errors.

Thanks in Advance!
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
You'll find some suggestions in this thread.

Consultant, Sima Solutions
Muni K Reddy
Ranch Hand

Joined: Aug 23, 2007
Posts: 74
Thanks mate!
Nyanas Kandhan
Ranch Hand

Joined: Jan 27, 2009
Posts: 35
For an example on Highlighting Error Fields you can refer here.

Struts Highlighting Error Fields

Struts Developer

I agree. Here's the link:
subject: html:errors
jQuery in Action, 3rd edition