Hi Adam, I found what was the problem but was a bit ashamed of telling :) I was missing the locale settings in my web.xml.
<context-param> <param-name>javax.servlet.jsp.jstl.fmt.locale</param-name> <param-value>iw</param-value> </context-param> Now it all works just fine, Erez -----Original Message----- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Sunday, August 24, 2003 12:50 PM To: Struts Users Mailing List Subject: Re: bean:message to fmt:message Hi Erez, had similar problems myself. Specifying the application resources in web.xml didn't work for me for hours because I'd spelt it wrong - perhaps you should check you have it spelt correctly (is that really a small r for resources.application, and with a dot? could it be resourceApplication.properties?) I think tomcat looks for a class with the extension .properties Plus the param-name looks a bit messed up, although that's probably just a cut & paste slip-up. Try seeing if the fmt:message tag can find it by placing the bundle attribute on the tag itself. On 08/24/2003 01:28 PM Erez Efrati wrote: > Oops, sorry I mixed up key with value, > > I still get ???MyForm.title??? on <fmt:message key="MyForm.title" /> > > In my web.xml I put as documented in JSTL specs: > > <context-param> > <param-name>javax.servlet.jsp.jstl.fmt.localizationContext > a</param-name> > <param-value>resources.application</param-value> > </context-param> > > This all works with bean:message. > Any ideas why? > > Erez > > -----Original Message----- > From: Erez Efrati [mailto:[EMAIL PROTECTED] > Sent: Sunday, August 24, 2003 1:20 PM > To: 'Struts Users Mailing List' > Subject: bean:message to fmt:message > > > In my resource properties file I have key in the following format: > > button.next="xxx" > .. > > I am trying to move from <bean:message key="button.next" /> which works > just fine, to <fmt:message value="button.next" /> > > And I get the following error: > > "Attribute value invalid according to the specified TLD' " > > Why? Can't fmt:message accept these kind of keys (with a dot char)? > > Thanks, > Erez > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- struts 1.1 + tomcat 4.1.27 + java 1.4.2 Linux 2.4.20 RH9 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]