You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Hari Om <ha...@hotmail.com> on 2003/10/01 16:23:41 UTC

Cannot find message resources under key org.apache.struts.action.MESSAGE

I am using IntelliJ 3 for my JSP/Servlets and Struts application. I
have my application directory structure as follows:

C:\strutsShop --> home directory for my application
C:\strutsShop\src\books\*.class
C:\strutsShop\WEB-INF\lib\struts.jar
C:\strutsShop\WEB-INF\struts*.tld
C:\strutsShop\WEB-INF\web.xml
C:\strutsShop\*.jsp
C:\strutsShop\WEB-INF\properties\*.properties

In my JSP Page I display a Hello message. If it is US..it should
display HI and if it is French it displays BONJOIR
Basically I ma using MESSAGE.

In my ApplicationResources_en.properties I have:
index.html=Hi

and in In my ApplicationResources_fr.properties I have:
index.html=BONJOIR

My STRUTS.XML file has following:
<message-resources parameter="/WEB-INF/properties/ApplicationResources"/>

and then I store the files in
C:\strutsShop\WEB-INF\properties\Application_en.properties

Also the above location is present in my CLASSPATH.

But when I execute the page on URL, I get
javax.servlet.ServletException: Cannot find message resources under
key org.apache.struts.action.MESSAGE

can any one help me out on this....?

THANKS

_________________________________________________________________
Share your photos without swamping your Inbox.  Get Hotmail Extra Storage 
today! http://join.msn.com/?PAGE=features/es


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: Cannot find message resources under key org.apache.struts.action.MESSAGE

Posted by Caroline Lauferon <ca...@cgey.com>.
> In my JSP Page I display a Hello message. If it is US..it should display
HI and if it is French it displays BONJOIR
> Basically I ma using MESSAGE.
>
> In my ApplicationResources_en.properties I have:
> index.html=Hi
>
> and in In my ApplicationResources_fr.properties I have:
> index.html=BONJOIR

So, you have put in your jsp : <bean:message key="index.html" />, havn't
you?

> My STRUTS.XML file has following:
> <message-resources parameter="/WEB-INF/properties/ApplicationResources"/>
>
> and then I store the files in
> C:\strutsShop\WEB-INF\properties\Application_en.properties

your files should be ApplicationResources_en.properties and
ApplicationResources_fr.properties. I think that's the problem.

> Also the above location is present in my CLASSPATH.
>
> But when I execute the page on URL, I get javax.servlet.ServletException:
Cannot find message resources under key org.apache.struts.action.MESSAGE

I know it doesn't matter by now, but I'm french and you should say Bonjour
instead of Bonjoir ;-)
Hope it helps,
Caroline



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org