You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Gündüz Can Topal <gt...@trend-tech.net> on 2006/01/05 15:19:52 UTC
Missing message for key
Hey
I setup ApplicationResources.properties file in"com.trend.struts"
package in "src" directory.
In which I have
title = "MY TITLE"
element.
My struts-config line as follows :
<message-resources parameter="com.trend.struts.ApplicationResources" />
A jsp page containing following code
<%@ taglib uri='/WEB-INF/struts-bean.tld' prefix='bean' %>
<bean:message key='title' />
throws a jspException :
Missing message for key "title".
?
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Missing message for key
Posted by Rick Reumann <st...@reumann.net>.
Gündüz Can Topal wrote the following on 1/5/2006 9:19 AM:
> I setup ApplicationResources.properties file in"com.trend.struts"
> package in "src" directory.
Are you sure the file is being copied over to your com.trend.struts
directory in classes? A lot of times people forget to make sure build
scripts copy over those files or some IDEs might not be moving the file
over for you.
--
Rick Reumann
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Missing message for key
Posted by Dave Newton <ne...@pingsite.com>.
Gündüz Can Topal wrote:
> I setup ApplicationResources.properties file in"com.trend.struts"
> package in "src" directory.
Well, the webapp expects the properties file to be on your classpath,
not in your source directory.
When you create your WAR file or deploy your web application (presumably
using Ant) are you putting the properties file somewhere that's actually
being deployed?
Dave
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Missing message for key
Posted by Vasumathi <va...@koensoft.com>.
hi
u try like this in jsp page.
<bean:message key="title" />
Quoting Gündüz Can Topal <gt...@trend-tech.net>:
> Hey
>
> I setup ApplicationResources.properties file in"com.trend.struts"
> package in "src" directory.
>
> In which I have
> title = "MY TITLE"
> element.
>
> My struts-config line as follows :
> <message-resources parameter="com.trend.struts.ApplicationResources" />
>
> A jsp page containing following code
> <%@ taglib uri='/WEB-INF/struts-bean.tld' prefix='bean' %>
> <bean:message key='title' />
>
> throws a jspException :
> Missing message for key "title".
>
> ?
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org