Hello Simon,
Wednesday, June 20, 2001, 10:31:36 PM, you wrote:
SL> For some reason, Strut can't find my message bundle. For testing purpose, i
SL> have 2 language(thus 2 properties files).
SL> MyResources.properties(default for English)
SL> MyResources_fr.properties(for French)
SL> On the JSP message bean call, the default English works fine. But i can't
SL> get the French version to work. It tells me:
SL> javax.servlet.jsp.JspException: Cannot find message resources under key
SL> MyResources
SL> <!-- jsp code -->
SL> <h3><bean:message bundle="MyResouces" locale="fr" key="um_user.heading"/>
SL> <%= userSession.getName()%>
SL> </h3>
SL> <!-- end jsp code -->
SL> <!-- the xml config file here -->
SL> <servlet>
SL> <servlet-name>action</servlet-name>
SL> <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
SL> <init-param>
SL> <param-name>application</param-name>
SL> <param-value>MyResources</param-value>
SL> </init-param>
SL> ...
SL> </servlet>
If your work with on bundle only then just remove bundle attribute
form bean:message -
<bean:message locale="fr" key="um_user.heading"/>
--
Best regards,
Oleg mailto:[EMAIL PROTECTED]