aspose file tools*
The moose likes Struts and the fly likes Cannot find message resources Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Cannot find message resources" Watch "Cannot find message resources" New topic
Author

Cannot find message resources

saurav sarkar
Ranch Hand

Joined: Jan 07, 2007
Posts: 180

Hi All
I have a new problem now.
i am getting javax.servlet.ServletException: Cannot find message resources under key org.apache.struts.action.MESSAGE


Here is the exception



Please see my jsp and struts-config.xml



Struts-config.xml


Please help


Be Objectively Oriented.Explore the power of OOPs.
My Blog, Eclipse EMF Query committer.
Nakata kokuyo
Ranch Hand

Joined: Apr 13, 2005
Posts: 438
hi saurav ,

i guess you have miss out bundle attribute

assume you have a resource property file name = PagesResources.property in web-inf\classes folder



hope it help
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
If you're using the default bundle, it is not necessary to specify a bundle attribute in a <bean:message> tag. Most likely the problem is that you haven't copied your MessageResources.properties file to the WEB-INF/classes/struts/example directory.
[ January 18, 2007: Message edited by: Merrill Higginson ]

Merrill
Consultant, Sima Solutions
saurav sarkar
Ranch Hand

Joined: Jan 07, 2007
Posts: 180

I have the messagesresources.properties files under the required folder.Dont know why mu life is not easy with struts
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
I have the messagesresources.properties files under the required folder


If you have a file named "messagesresources.properties" under the required folder, then that's the problem. What you need is a file named "MessageResources.properties", since that's what you declared in your struts-config.xml file.

If the file is named correctly, and you were just careless in your post, then I suspect that many of your problems with Struts stem from mixing artifacts from different versions. That's why I've been trying to convince you to re-download Struts and start with a fresh installation that you know is consistent.
[ January 18, 2007: Message edited by: Merrill Higginson ]
saurav sarkar
Ranch Hand

Joined: Jan 07, 2007
Posts: 180

Merill,

Again i was careless in my post.You are absolutely right.
But the problem is i am unable to download struts versions.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Cannot find message resources