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.
-
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
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]
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
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
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.
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]
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 / /
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
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
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
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
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
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
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:
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/
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
17 matches
Mail list logo