File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Multipls message bundle resource error

 
Nakata kokuyo
Ranch Hand
Posts: 465
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi good day ,
i trying to setup 2 resource properties files, where i located it in web-inf\src\java

there are MessageResource.properties and PagesResources.properties,

and i have configure struts-config in this way



this is how PagesResources look like :


when i try display it out in jsp by using


it prompt me error "SEVERE: ServletException in '/pages/userrole/userrolesearch.jsp': Missing messag
e for key "userrole.search"
javax.servlet.ServletException: Missing message for key "userrole.search""

can someone spot out any error on this ?
thanks for enlighten
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your message resource files must be in WEB-INF/classes. It's fine if they are also in a source directory, but they must be copied to WEB-INF/classes when the web application is deployed.
 
Nakata kokuyo
Ranch Hand
Posts: 465
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Merrill Higginson , i check out the web-inf folder, the 2 properties file does exist ini WEB-INF\classes\java
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
They should not be in WEB-INF/classes/java. They should be in WEB-INF/classes.
 
Nakata kokuyo
Ranch Hand
Posts: 465
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you Merrill Higginson for helping to solved my problem, you are great , it really caused by the location of properties file, that cause me figure out many hours , thanks again and have a nice day
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic