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

Stripes MissingResourceException

 
Vadim Vararu
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just began to study Stripes and here is my first problem. I've put everything as it's written in the tutorial from their site and everything goes ok, but not
the Missing Resource problem:

Could not find an error message with any of the following keys: 'test.CalculatorActionBean.numberOne.valueNotPresent', 'test.CalculatorActionBean.numberOne.errorMessage', '/test/Calculator.action.numberOne.valueNotPresent', '/test/Calculator.action.numberOne.errorMessage', 'numberOne.valueNotPresent', 'numberOne.errorMessage', 'test.CalculatorActionBean.valueNotPresent'.test.CalculatorActionBean.errorMessage', '/test/Calculator.action.valueNotPresent', '/test/Calculator.action.errorMessage', 'validation.required.valueNotPresent'.

I can't understand what's wrong. I put default properties file in one of source packages of the application!
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I can't understand what's wrong. I put default properties file in one of source packages of the application!

Ok, but did you add the missing resource properties? test.CalculatorActionBean.numberOne.valueNotPresent is not a default key because it it specific to the example. So it will need to be added by you.
 
Vadim Vararu
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, i didn't! I've read that frameword uses next property if it does not find the more specific one. So, in the it should use the default one.
 
Frederic Daoud
author
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Vadim Vararu wrote:I can't understand what's wrong. I put default properties file in one of source packages of the application!


Actually, the StripesResources.properties file belongs on the classpath of the application: WEB-INF/classes.
 
Vadim Vararu
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How could i set as welcome page, not a .jsp, but an action (that forwards to a jsp)?

I tried to put in web.xml welcome file an action:


so i have in the default package Default class that implement ActionBean and which has a default handler (which returns a forwardResolution to the .jsp a want), but this does not work.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic