aspose file tools*
The moose likes Struts and the fly likes Struts 1.3 Error messages displaying improperly on jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts 1.3 Error messages displaying improperly on jsp" Watch "Struts 1.3 Error messages displaying improperly on jsp" New topic
Author

Struts 1.3 Error messages displaying improperly on jsp

Paul Yule
Ranch Hand

Joined: May 12, 2008
Posts: 229
Currently I'm getting ???en_US.error.required??? displayed to the jsp page when the validate method of my ActionForm adds an error and I display it on the jsp page with <html:errors/>

Here is where I add the message from the validate method



properties file including the message:



The properties file is located at com.company.project.resources.ApplicationResources.properties

My struts config is included below referencing the property file



I'm lost at what to do. I feel like it's looking for a properties file specific to EN_us. After i click submit on my html page it adds the error message when I don't specify the user name but it is displayed as ???en_US.error.required???.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

"s"
Paul Yule
Ranch Hand

Joined: May 12, 2008
Posts: 229
David Newton wrote:"s"

hmmm... am I trying to look for a typo involving an "s"? I don't see it. Or is Superman going to save that day? Do you think he codes in his spare time?
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

I'll take either Lois or Lana as payment.
Paul Yule
Ranch Hand

Joined: May 12, 2008
Posts: 229
Wow, thanks David. I must have stared at this thing for 4 hours before posting trying to go through every possible thing I could find and I still end up with an "Add a semicolon" solution.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Don't you hate that?! I do. The disconnect between some of the normal things in Java apps makes me mental.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts 1.3 Error messages displaying improperly on jsp