Hello,
please, can you show me on this example how to convert tiles from struts1 to
struts2?
This example defines localized page title attribute passed to template in
struts1:
<bean:define id="messages" name="<%= org.apache.struts.Globals.MESSAGES_KEY %>"
type="org.apache.struts.util.MessageResources"/>
<bean:define id="locale" name="locale" type="java.util.Locale" scope="session"
/>
<%
String docTitle = messages.getMessage(locale, "page.title");
%>
<tiles:insertDefinition name="layout-main">
<tiles:putAttribute name="document-title" value="<%= docTitle %>"
/>
</tiles:insertDefinition>
Thank you.
Tom
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]