This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Spring and the fly likes Can't read from '' file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Can Watch "Can New topic

Can't read from '' file

Faisal Fuad
Ranch Hand

Joined: Jul 05, 2011
Posts: 79

Can any one please help me to find out my mistake? Down here I just want to implement a simple form validation (NotEmpty) for two fields only. And if fields are empty (either one or both), then error message will appear where those message(s) I want to set through my "" file. However, it is not working (not reading file) like the way I want

My codes are as folows:

a) web.xml

b) FormExample-servlet.xml




f) index.jsp

g) FormInput.jsp

h) FormOutput.jsp

Faisal Fuad
Ranch Hand

Joined: Jul 05, 2011
Posts: 79

I did solve this problem as follows:

As in my "" I defined this following:

Therefore, in "" file I did the following change (followed the right format):

and in "FormExample-servlet.xml" I did register the messages properties file as follows:

Honestly speaking, I did these same changes even before and tried many times but didn't work. And now it is 1 AM...
May be my lenovo needs to sleep and so did this little favor after this long

Anyway, will be glad if this post helps someone. Good Night
I agree. Here's the link:
subject: Can't read from '' file
Similar Threads
can't find css, images and js static files
Passing variable from controller to controller
spring mvc with tiles hibernate validator @valid giving error
Problem with validation example
Not able to Validate form using JSR-303 validation implementation in Spring MVC