struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Hardy <ahardy.str...@cyberspaceroad.com>
Subject Re: Struts tiles layout by tiles-config
Date Tue, 11 Apr 2006 09:59:51 GMT
Hi Raghuveer,
split the unwanted footer from your header.

put it in minimal.definition, and make base.definition extend 
minimal.definition so that it still has the header.

Then for your error page, extend minimal.definition.


Adam
Raghuveer on 10/04/06 17:05, wrote:
> Is there facility to restrict some tile in my base configration.
> 
> Example
> 
> In "page.error" how to use only header part of my base configration.
> 
> 
> -----------------------------------------------------
> tiles-config xml file
> 
> <!-- base tiles definition -->
> 	<definition name="base.definition" path="/jsp/siteLayout.jsp" >
> 		<put name="header" value="/jsp/banner.jsp" />
> 		<put name="footer" value="/jsp/footer.jsp" />
> 	</definition>
> 	<!-- tiles definition of apllication error page -->
> 	<definition name="page.error" extends="base.definition">
> 	<put name="title" value="Aeroquote - Error Page" />
> 	<put name="header" value="/jsp/banner.jsp" />
> 	<put name="body" value="/jsp/error.jsp" />
> 	</definition>
> 
> ---------------------------------------------
> <html:html locale="true">
>   <head>
>     <html:base />
>     <title><tiles:getAsString name="title" /></title>
> 
>   </head>
>   <body >
> <table border="1" cellpadding="0" cellspacing="0" width="98%" id="table1"
> height="100%" align="center">
>     <tr>
>       <td  width="100%" valign="top" height="85">
>      <tiles:insert attribute="header"  />
>       </td>
>     </tr>
>     <tr>
> 	   <td bgcolor="#FFFFFF" width="100%"  valign="top">
> <!-- Start Working Table -->
>       <tiles:insert attribute="body" />
> <!-- End Working Table -->
>       </td>
>     </tr>
>     <tr>
>       <td width="100%" valign="bottom" height="25">
>      <tiles:insert attribute="footer" />
>       </td>
>     </tr>
>   </table>
>     </body>
> </html:html>
> 
> 
> 
> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 


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


Mime
View raw message