[Opensource] The Great Frames Debate
Peter A. Pilgrim
peterp at xenonsoft.demon.co.uk
Sat Mar 8 20:32:27 PST 2003
David Herron wrote:
>
> On Monday, Feb 24, 2003, at 13:32 US/Pacific, Michael Rimov wrote:
>
>> So, is there anybody that has a suggestion on how to remove the
>> frames, WITHOUT removing any of the benefits that frames provide?
>>
>
--////---
> For the site I'll experiment with Tiles, but at the moment what I read
> in the book doesn't impress me. Sounds like everything you might want
> to do is just as doable with jsp:include or with custom tags. But maybe
> the Tiles let you change the look of a whole site all at once just by
> changing the tile definition.
Tiles is great for setting a standard layout for common set of web pages.
--////--
Here is a simple tile layout for the Admin pages
<html>
<body>
<table width="100%" cellspacing="4" cellpadding="0" >
<tr>
<td colspan="2">
<%-- Jcorporate logo and icon button menus --%>
<tiles:insert attribute="navigation" />
</td>
</tr>
<tr>
<td width="150" >
<%-- component menu --%>
<tiles:insert attribute="component-menu" />
</td>
<td>
<%-- user content --%>
<tiles:insert attribute="body" />
</td>
</tr>
</table>
</body>
</html>
then you can use the layout in a JSP
<tiles:insert page="/expresso/templates/AdminDefaultLayout.jsp" >
<tiles:put put="navigation" value="/expresso/standard/navigation.jsp" />
<tiles:put put="navigation" value="/expresso/standard/component-menu.jsp" />
<tiles:put put="navigation" value="/orangetrader/myscreen.jsp" />
</tiles:insert>
myscreen.jsp is where I define my body content. How difficult is it?
--
Peter Pilgrim
__ _____ _____ _____
/ //__ // ___// ___/ + Serverside Java
/ /___/ // /__ / /__ + Struts
/ // ___// ___// ___/ + Expresso Committer
__/ // /__ / /__ / /__ + Independent Contractor
/___//____//____//____/ + Intrinsic Motivation
On Line Resume
||
\\===> `` http://www.xenonsoft.demon.co.uk/no-it-striker.html ''
More information about the Opensource
mailing list