java.public@gmail.com
Oct 11th, 2005, 04:46 AM
Hi,
I have a form with eg. 5 fields, one of the fields is required, I can show error message as:
<c:out value="${status.errorMessage}" />
but I wanted it nice formated (add div, img html tags), so I need to check if theere is an error first.
How can I do this? Is there any Spring tags, or I need to write a scriplet?
I found method hasFieldErrors(String field) but how can I get errors instance related for field it matches?
Best Regards,
Lee
I have a form with eg. 5 fields, one of the fields is required, I can show error message as:
<c:out value="${status.errorMessage}" />
but I wanted it nice formated (add div, img html tags), so I need to check if theere is an error first.
How can I do this? Is there any Spring tags, or I need to write a scriplet?
I found method hasFieldErrors(String field) but how can I get errors instance related for field it matches?
Best Regards,
Lee