Re: JSTL messages problem

2005-11-22 Thread Nick Sophinos
Place this in your web.xml file: context-param param-namejavax.servlet.jsp.jstl.fmt.localizationContext/param-name param-valuecom.omnytext.blah.blah.properties.ApplicationResources /param-value /context-param Where ApplicationResources.properties is the name of the message bundle in question. -

Re: JSTL messages problem

2005-11-22 Thread Frank W. Zammetti
Hi Nick, I added this but it still didn't work... One thing that didn't make sense to me is that I have app_resources_en.properties in WEB-INF/classes, so I wasn't sure how to qualify that in a package structure, so I just put param-valueapp_resources.properties/param-value... is that right or am

Re: JSTL messages problem

2005-11-22 Thread Frank W. Zammetti
Ah, I got it! The parameter should have been app_resources WITHOUT the .properties. Now it works. Thanks Nick, I appreciate your time! -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM: fzammetti Yahoo: fzammetti MSN: [EMAIL PROTECTED]

Re: JSTL messages problem

2005-11-22 Thread Frank W. Zammetti
Yep, just figured that out myself :) -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM: fzammetti Yahoo: fzammetti MSN: [EMAIL PROTECTED] On Tue, November 22, 2005 3:27 pm, Wendy Smoak said: On 11/22/05, Frank W. Zammetti [EMAIL

Re: JSTL messages problem

2005-11-22 Thread Frank W. Zammetti
Ok, today is apparently the day I get to ask a bunch of stupid questions... Why doesn't this work? html:submit styleClass=cssButton value=fmt:message key=labels.loginButton / / I get... org.apache.jasper.JasperException: /index.jsp(36,83) equal symbol expected ...when I try it. bean:message

Re: JSTL messages problem

2005-11-22 Thread Wendy Smoak
On 11/22/05, Frank W. Zammetti [EMAIL PROTECTED] wrote: Ok, today is apparently the day I get to ask a bunch of stupid questions... Why doesn't this work? html:submit styleClass=cssButton value=fmt:message key=labels.loginButton / / You can't use a JSP tag as attribute of another JSP tag.

Re: JSTL messages problem

2005-11-22 Thread Ed Griebel
I use this idiom all the time to get a message label on a button: html:submit property=button styleClass=longButton bean:message key=button.confirm/ /html:submit You should be able to substitute fmt:message above. -ed On 11/22/05, Wendy Smoak [EMAIL PROTECTED]

Re: JSTL messages problem

2005-11-22 Thread Rahul Akolkar
On 11/22/05, Wendy Smoak [EMAIL PROTECTED] wrote: On 11/22/05, Frank W. Zammetti [EMAIL PROTECTED] wrote: Ok, today is apparently the day I get to ask a bunch of stupid questions... Why doesn't this work? html:submit styleClass=cssButton value=fmt:message key=labels.loginButton / /

Re: JSTL messages problem

2005-11-22 Thread Wendy Smoak
On 11/22/05, Ed Griebel [EMAIL PROTECTED] wrote: I use this idiom all the time to get a message label on a button: html:submit property=button styleClass=longButton bean:message key=button.confirm/ /html:submit You should be able to substitute fmt:message

Re: JSTL messages problem

2005-11-22 Thread Frank W. Zammetti
I admit I always forget the button and submit elements, among others, support body text. Had I remembered that I would have come up with this on my own :) But thanks Ed (and Wendy after the fact ;) ), that worked perfectly. -- Frank W. Zammetti Founder and Chief Software Architect Omnytex

Re: JSTL messages problem

2005-11-22 Thread Wendy Smoak
On 11/22/05, Rahul Akolkar [EMAIL PROTECTED] wrote: On 11/22/05, Nick Sophinos [EMAIL PROTECTED] wrote: This is definitely not how JSTL recommends loading bundles (see fmt:bundle and fmt:setBundle). Ofcourse, its your decision. Can you explain more about this? I'm also using the context

Re: JSTL messages problem

2005-11-22 Thread Frank W. Zammetti
Mailing List Subject: Re: JSTL messages problem Ok, today is apparently the day I get to ask a bunch of stupid questions... Why doesn't this work? html:submit styleClass=cssButton value=fmt:message key=labels.loginButton / / I get... org.apache.jasper.JasperException: /index.jsp(36,83) equal

Re: JSTL messages problem

2005-11-22 Thread Rahul Akolkar
On 11/22/05, Wendy Smoak [EMAIL PROTECTED] wrote: On 11/22/05, Rahul Akolkar [EMAIL PROTECTED] wrote: On 11/22/05, Nick Sophinos [EMAIL PROTECTED] wrote: This is definitely not how JSTL recommends loading bundles (see fmt:bundle and fmt:setBundle). Ofcourse, its your decision. Can you

Re: JSTL messages problem

2005-11-22 Thread Rahul Akolkar
Users Mailing List Cc: Struts Users Mailing List Subject: Re: JSTL messages problem Ok, today is apparently the day I get to ask a bunch of stupid questions... Why doesn't this work? html:submit styleClass=cssButton value=fmt:message key=labels.loginButton / / I get

Re: JSTL messages problem

2005-11-22 Thread Laurie Harper
For the record, here's the general solution as well, for situations where you can't use the element body like that. First, defining a scripting variable: c:set var=msgfmt:message key=msg.key//c:set x:yyy ... attr=${msg}/ Or, to avoid the scripting variable, you can use jsp:attribute:

Re: JSTL messages problem

2005-11-22 Thread Rahul Akolkar
On 11/22/05, Laurie Harper [EMAIL PROTECTED] wrote: For the record, here's the general solution as well, for situations where you can't use the element body like that. First, defining a scripting variable: c:set var=msgfmt:message key=msg.key//c:set snip/

Re: JSTL messages problem

2005-11-22 Thread Laurie Harper
Well, I said this was the gereral solution ;-) But yes, I forgot about that, which makes things that bit simpler for this case. L. Rahul Akolkar wrote: On 11/22/05, Laurie Harper [EMAIL PROTECTED] wrote: For the record, here's the general solution as well, for situations where you can't use