struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Varun Garg <varun_g...@yahoo.com>
Subject Re: Page Title
Date Tue, 23 Sep 2003 03:32:33 GMT
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 name="<%=titlee%>"/>


--- "Craig R. McClanahan" <craigmcc@apache.org> wrote:
> 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 layout title ?
> >>    
> >>
> >
> >Definitely.
> >
> >Put this in your header:
> >
> ><title><tiles:getAsString name="title"/></title>
> >
> >Now, in your tiles-def.xml file, put this:
> >
> >    <definition extends="default.layout"
> name="browse.costcenters">
> >        <put name="title" value="BIS-Web Browse
> Cost Centers"/>
> >        <put name="body-content"
> value="/custom/browse-costcenters.jsp"/>
> >    </definition>
> >
> >  
> >
> I'm almost embarrassed to ask this :-), but is there
> a way to localize 
> the replacement title?
> 
> Craig McClanahan
> 
> 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> struts-user-help@jakarta.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message