Win a copy of Micro Frontends in Action this week in the Server-Side JavaScript and NodeJS forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

Struts 1.3 Error messages displaying improperly on jsp

 
Ranch Hand
Posts: 230
  • 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???.
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"s"
 
Paul Yule
Ranch Hand
Posts: 230
  • 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
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: 230
  • 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
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.
reply
    Bookmark Topic Watch Topic
  • New Topic