struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Germuska <...@Germuska.com>
Subject Re: bean:define for value in properties file
Date Mon, 02 Dec 2002 22:33:42 GMT
At 5:08 PM -0500 2002/12/02, Michael Lee wrote:
>Not view it, set it to a pageContext variable.
>thanks though,

<bean:define id="pageTitle">
   <bean:message key="page.title" />
</bean:define>

Since Struts 1.1 (I think) bean:define can use its body content to 
define a literal String bean.

Joe



>Mike
>
>----- Original Message -----
>From: "Andrew B Forman" <andrew.forman@wcom.com>
>To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
>Sent: Monday, December 02, 2002 5:03 PM
>Subject: RE: bean:define for value in properties file
>
>
>>  <bean:message key="page.title" />
>>
>http://jakarta.apache.org/struts/api/org/apache/struts/taglib/bean/MessageTa
>>  g.html
>>
>>  a
>>
>>  > -----Original Message-----
>>  > From: Michael Lee [mailto:mleejr@hotmail.com]
>>  > Sent: Monday, December 02, 2002 3:52 PM
>>  > To: Struts Users Mailing List
>>  > Subject: bean:define for value in properties file
>>  >
>>  >
>>  > I have a value in my ApplicationResources.properties called
>>  > page.title=Customer Information
>>  > I want to have this value available in the page context. I would
>>  > like to use a struts tag to do so. If not, I have to use a
>>  > scriptlet (which I try to avoid).
>>  > here is what I'd like to do
>>  > <bean:define id="pageTitle" value="page.title"/>
>>  > any ideas?
>>  > thanks,
>>  > Mike
>>
>>
>>  --
>>  To unsubscribe, e-mail:
><mailto:struts-user-unsubscribe@jakarta.apache.org>
>>  For additional commands, e-mail:
><mailto:struts-user-help@jakarta.apache.org>
>>
>
>--
>To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
>For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


-- 
--
* Joe Germuska    { joe@germuska.com }
"It's pitiful, sometimes, if they've got it bad. Their eyes get 
glazed, they go white, their hands tremble.... As I watch them I 
often feel that a dope peddler is a gentleman compared with the man 
who sells records."
	--Sam Goody, 1956

--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message