struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chen, Gin" <>
Subject RE: Struts and Tiles and bean:message
Date Mon, 21 Oct 2002 14:57:55 GMT
Hi David,
	That was the intended use of page.title.
But I wanted to try to keep within the "struts standards" and define all
msgs within my application resource file.
Are you saying that there is no way to do an indirect mapping?
I mean cant I pull out the value of page.title ("order.status.title" in the
example) from tiles and then pass that to 
bean:message key so that it can look up the mapping of that value in the
application resource?
>From the source of tiles:getAsString it looks like tiles is just getting
that param from context
Can I just get that value from the context myself and pass it into the


-----Original Message-----
From: David Graham []
Sent: Monday, October 21, 2002 10:51 AM
Subject: Re: Struts and Tiles and bean:message

You can define a global title in your base tiles definition and only 
override it in sub definitions when needed.  Also, you could use 
<bean:message> in your jsp to get the appropriate title key for each page.


>From: "Chen, Gin" <>
>Reply-To: "Struts Users Mailing List" <>
>To: "'Struts Users Mailing List'" <>
>Subject: Struts and Tiles and bean:message
>Date: Mon, 21 Oct 2002 10:39:28 -0400
>Hi all,
>	I have an application that defines a specific value in my resource
>properties file as:
>order.status.title=Order Status
>	Since I am using tiles in my application. My main layout file cannot
><bean:message key="order.status.title"/>
>	because it is being used for other pages as well.
>	Therefore, for ever subdefinition I define a value page.title:
><put name="page.title" value="login.title"/>
>	How can I retrieve this to be used for the bean:message? Is there
>another solution?
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 

Unlimited Internet access for only $21.95/month.  Try MSN!

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message