Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

html:errors

 
Muni K Reddy
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You'll find some suggestions in this thread.
 
Muni K Reddy
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks mate!
 
Nyanas Kandhan
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For an example on Highlighting Error Fields you can refer here.

Struts Highlighting Error Fields

regards
Struts Developer

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic