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]
RE: bean:message to fmt:message
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-namejavax.servlet.jsp.jstl.fmt.localizationContext a/param-name param-valueresources.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]
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-namejavax.servlet.jsp.jstl.fmt.localizationContext a/param-name param-valueresources.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]
RE: bean:message to fmt:message
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-namejavax.servlet.jsp.jstl.fmt.locale/param-name param-valueiw/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-namejavax.servlet.jsp.jstl.fmt.localizationContext a/param-name param-valueresources.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]
Bean:message to fmt:message
I have a very small question: I have message keys that uses '.' like for instance 'myform.hello'. I read something but I am not sure, does fmt:message support this kind of keys or do I have to remove those '.' from my keys? Thanks, Erez - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Bean:message to fmt:message
Yes it does. - Original Message - From: Erez Efrati [EMAIL PROTECTED] Newsgroups: Struts Sent: Sunday, August 17, 2003 9:57 AM Subject: Bean:message to fmt:message I have a very small question: I have message keys that uses '.' like for instance 'myform.hello'. I read something but I am not sure, does fmt:message support this kind of keys or do I have to remove those '.' from my keys? Thanks, Erez - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Bean:message to fmt:message
A big relief.. thanks, just to think about converting them all... Erez -Original Message- From: Dan Tran [mailto:[EMAIL PROTECTED] Sent: Sunday, August 17, 2003 6:08 PM To: Struts Users Mailing List Subject: Re: Bean:message to fmt:message Yes it does. - Original Message - From: Erez Efrati [EMAIL PROTECTED] Newsgroups: Struts Sent: Sunday, August 17, 2003 9:57 AM Subject: Bean:message to fmt:message I have a very small question: I have message keys that uses '.' like for instance 'myform.hello'. I read something but I am not sure, does fmt:message support this kind of keys or do I have to remove those '.' from my keys? 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]