Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts 1.3 Error messages displaying improperly on jsp

 
Paul Yule
Ranch Hand
Posts: 229
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"s"
 
Paul Yule
Ranch Hand
Posts: 229
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'll take either Lois or Lana as payment.
 
Paul Yule
Ranch Hand
Posts: 229
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't you hate that?! I do. The disconnect between some of the normal things in Java apps makes me mental.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic