File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Multipls message bundle resource error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Multipls message bundle resource error " Watch "Multipls message bundle resource error " New topic
Author

Multipls message bundle resource error

Nakata kokuyo
Ranch Hand

Joined: Apr 13, 2005
Posts: 439
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

Joined: Feb 15, 2005
Posts: 4864
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.


Merrill
Consultant, Sima Solutions
Nakata kokuyo
Ranch Hand

Joined: Apr 13, 2005
Posts: 439
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

Joined: Feb 15, 2005
Posts: 4864
They should not be in WEB-INF/classes/java. They should be in WEB-INF/classes.
Nakata kokuyo
Ranch Hand

Joined: Apr 13, 2005
Posts: 439
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Multipls message bundle resource error