This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
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 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!