RE: new newsgroups:Lab1
"Peyathevar, Santhi {PBG}" <[email protected]> Wed, 9 Jul 2003 16:51:00 -0500
| Newsgroups | gmane.comp.java.mvc.devel |
|---|---|
| Message-ID | <[email protected]> |
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>