struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Regalut <>
Subject I18n In title with dynamic parameters
Date Mon, 26 May 2008 12:01:59 GMT


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.

<definition name="common.layout" template="/common/layout.jsp">
        <put-attribute name="tituloKey" value="" />
        <put-attribute name="tituloKeyParam1" value=""/>
<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" />

<tiles:importAttribute name="tituloKey"/>
<tiles:importAttribute name="tituloKeyParam1"/>
        <s:text name="%{#attr['tituloKey']}">
                <s:param value="%{#attr['tituloKeyParam1']}"/>
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?

View this message in context:
Sent from the Struts - User mailing list archive at

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

View raw message