Gary,
 
Looks like it does not matter whether we have it as "messages_en-US" or
"messages"
 
1. If available, it takes from the messages_en-US.properties file. Else
looks in messages.properties
2. added <fmt:setBundle basename='properties.messages'/> to the jsp file.

Now it works

Santhi

 

-----Original Message-----
From: Gary Boal [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 09, 2003 1:39 PM
To: [EMAIL PROTECTED]
Subject: Re: [MVC-Programmers] new newsgroups:Lab1



I believe you need to remove the "_en-US" from the filename when identifying
it in the struts-config.xml file. Struts will append the suffix
automatically. E.g. <message-resources    parameter="properties/messages"/>

 
Gary Boal
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 


----- Original Message ----- 
From: Peyathevar, Santhi {PBG} <mailto:[EMAIL PROTECTED]>  
To: '[EMAIL PROTECTED]' <mailto:'[EMAIL PROTECTED]'>

Sent: Wednesday, July 09, 2003 10:08 AM
Subject: RE: [MVC-Programmers] new newsgroups:Lab1

All: 

Problem: My taskEdit.jsp is not picking up the message from property file

1.taskEdit.jsp:
<fmt:message key="pepsi.task.name"/>

2.struts.xml:
<message-resources    parameter="properties/messages_en-US"/>

3.messages.properties, messages_en-US.properties exist in
WEB-INF\classes\properties

4.property entries are in both .property files

What am i missing? In step 2, tried:
parameter="WEB-INF/classes/properties/messages_en-US"

Santhi
_______________________________________________
MVC-Programmers mailing list
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 
http://www.basebeans.net:8080/mailman/listinfo/mvc-programmers
<http://www.basebeans.net:8080/mailman/listinfo/mvc-programmers> 


_______________________________________________
MVC-Programmers mailing list
[EMAIL PROTECTED]
http://www.basebeans.net:8080/mailman/listinfo/mvc-programmers

Reply via email to