jQuery in Action, 3rd edition
The moose likes Struts and the fly likes WARNING: ApplicationResources_en_US.properties Not Found Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "WARNING: ApplicationResources_en_US.properties Not Found" Watch "WARNING: ApplicationResources_en_US.properties Not Found" New topic

WARNING: ApplicationResources_en_US.properties Not Found

ramnna jain
Ranch Hand

Joined: Mar 16, 2009
Posts: 129

I am using struts 1.3, tomcat 5.5, java5.

I made a message resource entry in struts-confug: <message-resources parameter="com.myproj.struts.properties.ApplicationResources" />

I am getting warning:

WARNING: Resource com/myproj/struts/properties/ApplicationResources_en_US.properties Not Found.
WARNING: Resource com/myproj/struts/properties/ApplicationResources_en.properties Not Found.

I checked if the message resource is properly deployed... it is all ok.

I am sending an ajax request which is properly gets reponse on request.readyState==4 & request.status==200.
But on alert(request.responseText) shows the jsp page through which we send the ajax request.
In Action class I put System.out.println("hi");, which never get printed.

The Action class extends MappingDispatchAction & related FormBean extends ValidatorActionForm.
validation.xml is properly checked & provided validation for all form fields.

I am unable to figure out What is wrong here?

ramnna jain
Ranch Hand

Joined: Mar 16, 2009
Posts: 129

I made a change: the formbean now extends ActionForm, instead of extending ValidatorActionForm.
With this change I found the action class method is accessed which was not happening previously. It prints 'hi'(see the code above).
But the formbean is not able to map the property stated in the jsp.

I think some problem occur at the time of starting validation... may be the COR try to process message resource & it does not find one!

ramnna jain
Ranch Hand

Joined: Mar 16, 2009
Posts: 129

In an another attempt I tried normal form submission normally means not through ajax...

No warning message... now able to get form values from formbean. But the no form validation happens.
I agree. Here's the link: http://aspose.com/file-tools
subject: WARNING: ApplicationResources_en_US.properties Not Found
It's not a secret anymore!