struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Raghuveer" <raghuve...@infotechsw.com>
Subject Struts tiles layout by tiles-config
Date Mon, 10 Apr 2006 16:05:35 GMT

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


Mime
View raw message