Meaningless Drivel is fun!*
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "html:errors" Watch "html:errors" New topic
Author

html:errors

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.


Merrill
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

regards
Struts Developer


regards,
Nyanaskandhan
 
 
subject: html:errors
 
Similar Threads
problem in displaying form elements based on no. of addresses
displaying errors by using struts validation framework
html:error --- validator..
Jsp-page populated after succesful insert
Redirecting from one action to another, want to pass parameters