Thanks for the response. Where would you change the layout?

Something like this within the pages/*.jsp files?


String layout = ".stackedStandard";
if (request.getParameter(printFriendly) != null) {
        layout = ".stackedPrintFriendly";
}
<tiles:insert definition="<%= layout %>" flush="true">
        <tiles:put name="title"         value="Product Group" />
        <tiles:put name="header"        value=".productGroup_header" />
        <tiles:put name="nav"           value="/tiles/nav.jsp" />
        <tiles:put name="body"          value=".productGroup_body" />
        <tiles:put name="footer"        value="/tiles/footer.jsp" />
</tiles:insert>


Or are you referring to the Dynamic L&F functionality within Tiles,
where the definition is actually a class, and you can conditionally
define the layout?


THX!



> -----Original Message-----
> From: Mark Lowe [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, February 17, 2004 12:02 PM
> To: Struts Users Mailing List
> Subject: Re: Printer Friendly using Tiles
> 
> 
> Assuming you're not cramming too much formatting inline then 
> change the 
> layout.
> 
> 
> On 17 Feb 2004, at 17:58, Eric Dahnke wrote:
> 
> >
> > What is the best way to do printer friendly pages using Tiles?
> >
> > We've got a portal type application. I'm looking at the 
> Dynamic Look & 
> > Feel capability of Tiles as a canidate for implementing 
> print friendly 
> > pages.
> >
> > Does anyone have any suggestions or wish to share about how they did
> > it?
> >
> >
> > Many Thanks, Eric
> >
> >
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to