Hi,
Has anyone got any ideas on how to use a message key as an argument in a
bean:message call.
e.g. bean:message key=field.lookupbutton arg0Key=customer.label/
At the moment I am using a scriptlet to access the message resources and
assign the message for the argument to a page variable. e.g.
hi,
u can't send the key as the argument to the bean:message, though u
might want to consider this
bean:define id="realValue"
bean:message key="customer.label"
//bean:define
bean:message key="field.lookupbutton"
arg0="%=realLabel%"/--
Thansk - that's ceryainly a lot neater. I keep forgetting that lots of tags
can have stuff defined in their body - I always seem to look at example
which have no body.
cheers,
Paul
-Original Message-
From: Nagendra Kumar O V S [mailto:[EMAIL PROTECTED]
Sent: 01 August 2003 12:47
To:
If you can use jstl, you can also try
fmt:message key=field.lookupbutton
fmt:param
fmt:message key=customer.label/
/fmt:param
/fmt:message
Cheers,
Krishna
-Original Message-
Having a look at JSTL is on my todo list:-)
-Original Message-
From: Krishnakumar N [mailto:[EMAIL PROTECTED]
Sent: 01 August 2003 13:10
To: Struts Users Mailing List
Subject: RE: Using a key as an argument to bean:message
If you can use jstl, you can also try
5 matches
Mail list logo