Win a copy of Event Streams in Action this week in the Java in General 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
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Stripes MissingResourceException

 
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!
 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • 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.
 
author
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
Boost this thread!