hi I am also facing the same problem .how you solved the issue..
thanks hazrana Regalut wrote: > > ok. Thanks. > > > Antonio Petrelli-3 wrote: >> >> I think you have to ask the Struts Users mailing list, since it is a >> Struts 2 question (more than a Tiles question): >> http://struts.apache.org/mail.html >> >> Antonio >> >> 2008/5/26 Regalut <[EMAIL PROTECTED]>: >>> >>> Hi: >>> >>> I am doing an web application with struts 2 and tiles 2, and want that >>> the >>> title, of every page, is internationalized and furthermore that will >>> contain >>> dynamic parameters. >>> >>> example: "Information of Nokia N95", being Nokia N95 the title of a >>> product, >>> that is to say a dynamic information. >>> >>> tiles.xml >>> <definition name="common.layout" template="/common/layout.jsp"> >>> <put-attribute name="tituloKey" value="" /> >>> <put-attribute name="tituloKeyParam1" value=""/> >>> ... >>> </definition> >>> <definition name="pages.product" extends="common.layout"> >>> <put-attribute name="tituloKey" value="title.product" /> >>> <put-attribute name="tituloKeyParam1" value="%{product.title}" /> >>> <put-attribute name="contenido" value="/pages/product.jsp" /> >>> </definition> >>> >>> layout.jsp; >>> <tiles:importAttribute name="tituloKey"/> >>> <tiles:importAttribute name="tituloKeyParam1"/> >>> <title> >>> <s:text name="%{#attr['tituloKey']}"> >>> <s:param value="%{#attr['tituloKeyParam1']}"/> >>> </s:text> >>> </title> >>> >>> ApplicationResources.properties: >>> title.product = Information of {0} >>> >>> The problem is that if an action takes to me to pages.product the title >>> shows me " Information of %{product.title} " >>> >>> How I can solve this? >>> >>> Thanks. >>> -- >>> View this message in context: >>> http://www.nabble.com/I18n-In-title-with-dynamic-parameters-tp17470472p17470472.html >>> Sent from the tiles users mailing list archive at Nabble.com. >>> >>> >> >> > > -- View this message in context: http://www.nabble.com/I18n-In-title-with-dynamic-parameters-tp17470472p20616672.html Sent from the tiles users mailing list archive at Nabble.com.
