IntelliJ Java IDE
The moose likes Spring and the fly likes validation problem Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Application Frameworks » Spring
Reply 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: 12612
Moving to Spring.
 
 
subject: validation problem
 
Threads others viewed
org.springframework.beans.factory.NoSuchBeanDefinitionException No bean named
Exception in PhaseListener RESTORE_VIEW 1 afterPhase
Application is executing correctly but getting these exception in log
Failure to load tld files
getting number format exception on jsp
developer file tools

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture