File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

validation problem

 
Bram Maes
Ranch Hand
Posts: 32
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to Spring.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic