File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "validation problem" Watch "validation problem" New topic

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 "" 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,

SCJP 5.0, SCEA part I
David Newton

Joined: Sep 29, 2008
Posts: 12617

Moving to Spring.
I agree. Here's the link:
subject: validation problem
It's not a secret anymore!