This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Struts and the fly likes Struts Message resources Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts Message resources" Watch "Struts Message resources" New topic
Author

Struts Message resources

Meet Gaurav
Ranch Hand

Joined: Oct 08, 2008
Posts: 492
Hi,

Message resources is not working for me.. I tried with different scenario, Please assist us to resolve the issue

Added the file name is Strutsconfig.xml
<!-- Property File Loading -->
<message-resources parameter="MessageResources" null="false" />

My Action Form


Message resources copied to classes path also

prompt.customer.emailId = Email Id is required.
errors.required={0} is required.
emailed=Email Id


But am getting
???en_US. prompt.customer.emailId???
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Well, that property isn't defined--what did you expect?
Meet Gaurav
Ranch Hand

Joined: Oct 08, 2008
Posts: 492
On the page am expecting Email Id is required

But am getting ???en_US. prompt.customer.emailId???


Am sorry
I added prompt.customer.emailId on the message properties
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts Message resources
 
Similar Threads
application.resources don't show me the messages
Struts 1.1 upload multiple files with multiple input elements
Struts 1.3 Error messages displaying improperly on jsp
validation error msg with properties file
Getting values from properties in validate-using multiple message-resources in struts