Two Laptop Bag
The moose likes Struts and the fly likes problem using nested:messagesPresent tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "problem using nested:messagesPresent tag" Watch "problem using nested:messagesPresent tag" New topic

problem using nested:messagesPresent tag

daya mukiri

Joined: Nov 02, 2005
Posts: 7
I am using nested:messagesPresent to display the field errors in a table.
My intention is to highlight the field in error in red.

But what is happening is supposing if there are 4 records in the table and 1st row 1st field is in error,it is not only higlighting that field but all the 1st fields in all the 4 rows, which is not expected.

Please let me know the solution for this problem.Thanks in advance.
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
Show us your code.

Consultant, Sima Solutions
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: problem using nested:messagesPresent tag
It's not a secret anymore!