• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

WARNING: ApplicationResources_en_US.properties Not Found

 
Ranch Hand
Posts: 129
Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 129
Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 129
Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
It looks like it's time for me to write you a reality check! Or maybe a tiny ad!
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic