You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Yen <hy...@leadingside.com> on 2004/12/16 08:31:25 UTC

Missing message for key "analystprofile.edit.screen.title"

Hi, I am new to struts and currently encountered these errors:
Error 500--Internal Server Error
javax.servlet.jsp.JspException: Missing message for key "analystprofile.edit.screen.title"


In struts-config.xml
<message-resources key="ANALYSTPROFILE_LABEL" parameter="resources.i18n.ad.analystprofile_labels"/>

in analystprofile_labels_en_GB.properties
analystprofile.edit.screen.title=Edit Analyst Profile

in the jsp
<title><bean:message bundle="ANALYSTPROFILE_LABEL/ad" key="analystprofile.edit.screen.title"/></title>

I followed the example from other source, which is working in other machine. Any advice..?

Thanks


rgds,
Yen
LeadingSide (M) Sdn Bhd
#29-11 The Boulevard
Mid Valley City
Lingkaran Syed Putra
59200 Kuala Lumpur, Malaysia
Tel: +603 2287 9631/2
Fax: +603 2287 9630
Email: hywong@leadingside.com

Re: Missing message for key "analystprofile.edit.screen.title"

Posted by Yen <hy...@leadingside.com>.
The purpose for /ad is the module seperation.
as the property files are located under
\WEB-INF\classes\resources\i18n\ad

However, the problem is solved. The regional setting for the machine need to 
be English(UK)..

learning curve is sucks >^<

Thanks for the help.


rgds,
Yen 


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


Re: Missing message for key "analystprofile.edit.screen.title"

Posted by Radu Badita <ra...@gmail.com>.
The problem here is the tag in your jsp:
<bean:message bundle="ANALYSTPROFILE_LABEL/ad" 
key="analystprofile.edit.screen.title"/>
It should be:
<bean:message bundle="ANALYSTPROFILE_LABEL" 
key="analystprofile.edit.screen.title"/>

"Why without '/ad' ?" you may ask. Probably the example you copied from is 
a Struts module named 'ad'; in such cases, when the message-resources tag 
is in a Struts module config, then /<name-of-the-module> is appended to the 
name of the messages resource. In your case, you are not in a module, so 
nothing gets appended to the name of the bundle.

Hope it works. Good luck.

>Hi, I am new to struts and currently encountered these errors:
>Error 500--Internal Server Error
>javax.servlet.jsp.JspException: Missing message for key 
>"analystprofile.edit.screen.title"
>
>
>In struts-config.xml
><message-resources key="ANALYSTPROFILE_LABEL" 
>parameter="resources.i18n.ad.analystprofile_labels"/>
>
>in analystprofile_labels_en_GB.properties
>analystprofile.edit.screen.title=Edit Analyst Profile
>
>in the jsp
><title><bean:message bundle="ANALYSTPROFILE_LABEL/ad" 
>key="analystprofile.edit.screen.title"/></title>
>
>I followed the example from other source, which is working in other 
>machine. Any advice..?
>
>Thanks
>
>
>rgds,
>Yen
>LeadingSide (M) Sdn Bhd
>#29-11 The Boulevard
>Mid Valley City
>Lingkaran Syed Putra
>59200 Kuala Lumpur, Malaysia
>Tel: +603 2287 9631/2
>Fax: +603 2287 9630
>Email: hywong@leadingside.com



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