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

2004-12-16 Thread Radu Badita
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
titlebean: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: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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

2004-12-16 Thread Yen
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Missing message for key analystprofile.edit.screen.title

2004-12-15 Thread Yen
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
titlebean: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: [EMAIL PROTECTED]