File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Parameterized error messages 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 "Parameterized error messages" Watch "Parameterized error messages" New topic

Parameterized error messages

pavan babu

Joined: Sep 02, 2008
Posts: 15

I am doing validations using annotaions.I want to pass a parameter to a error message so that it will show a generic error message,some thing like

"SomeName" is required

where SomeName is a custom parameter.I know the otherways like using the filederror but I couldn't figure out how to do the same using annotaions.Any help is apreciated.

I agree. Here's the link:
subject: Parameterized error messages
It's not a secret anymore!