aspose file tools*
The moose likes Spring and the fly likes validation problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "validation problem" Watch "validation problem" New topic
Author

validation problem

Bram Maes
Ranch Hand

Joined: Sep 27, 2006
Posts: 32
Dear fellow ranchers,

I am having an exception I do not understand. I'm afraid I'm missing something fundamental here.

I created the following annotation:



When the constraint gets violated, I get the following exception:




I declared the "com.company.constraints.nrnvalidation" property within my resourcebundle, but to me it seems as I can only put a number there? When I did put a number there, everything worked out fine, but in my webapp the error message was "20", what clearly is not what I want.

If anybody has a clue, please share your thoughts!

thanks a lot,
Bram.

SCJP 5.0, SCEA part I
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Moving to Spring.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: validation problem