I have an interesting problem that I can't figure out how to solve.
We are using Tiles, as well as a custom tag library that renders
content from Velocity Templates. These templates have HTML content in
them, but they're mostly text - and this is our CMS (for now). The
problem is is that
Matt,
We have solved this in our application by defining our tile as follows
definition name=baseDef path=/Template.jsp
put name=title value=My Title1 /
put name=header value=/header.jsp/
put name=topnav value=/topnav.jsp/
put name=leftnav
tiles:importAttribute name=title/
titlebean:message name=title scope=page//title
Additionally to pass the tile name for menus to use I define a bean in the definition
name to the request
tiles:useAttribute id=defname name=defname scope=request/
Cal
http://www.calandva.com/Last update 08/01/03
Mailing List
Subject: RE: Setting the page title from a tile
I do something a little different to pull the title out of
application.properties
definition name=whatsnew.pagedef extends=home.pagedef
put name=title value=whatsnew.title /
put name=content
How do i assign different title for each page using tiles. Following is my tile layout
which has title My Site Name. And it has Header, Side Menu, BODY, Footer.
Should i have title/title in each BODY jsp ?
Is there any short cut to get the page name and over ride the main layout title ?
How do i assign different title for each page using tiles. Following is my tile
layout which has title My Site Name. And it has Header, Side Menu, BODY, Footer.
Should i have title/title in each BODY jsp ?
Is there any short cut to get the page name and over ride the main layout title ?
Bryce Fischer wrote:
How do i assign different title for each page using tiles. Following is my tile layout which has
title My Site Name. And it has Header, Side Menu, BODY, Footer.
Should i have title/title in each BODY jsp ?
Is there any short cut to get the page name and over ride the main
[EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, September 22, 2003 6:45 PM
Subject: Re: Page Title
Bryce Fischer wrote:
How do i assign different title for each page using tiles. Following is
my tile layout which has title My Site Name. And it has Header, Side Menu
=page.xyz.key type=String/
Then you can use this to write out the localised page title in the JSP page:
tiles:importAttribute name=title/
bean:message name=title/
Craig McClanahan
-
To unsubscribe, e-mail: [EMAIL
I did this.
definition extends=default.layout
name=browse.costcenters
put name=title value=broswe.customers/
put name=body-content
value=/custom/browse-costcenters.jsp/
/definition
tiles:useAttribute name=title id=titlee
classname=java.lang.String/
bean:message
10 matches
Mail list logo