site.mainLayout defines the overall page. The "mainbody" portion will vary depending on the page called. As in the xml file, mainbody will display a group of portals on the left and right side of the screen with a larger html section in the middle addressed by "bodycontent". The problem (as I see it) is that to get this to work I need to duplicate code in both "home.page.layout" and "logon.page.layout". Is it possible to do an additional "extends" somewhere so that will eliminate the duplication of code so that a scope change (what the users want to see) can be addressed in a single location of the xml file?
Later, aj
<!DOCTYPE tiles-definitions PUBLIC
"-//Apache Software Foundation//DTD Tiles Configuration//EN"
"http://jakarta.apache.org/struts/dtds/tiles-config.dtd">
<!-- Definitions for Tiles documentation -->
<tiles-definitions>
<!-- ======================================================= -->
<!-- Master definition(s) -->
<!-- ======================================================= -->
<!-- Main page layout used as a root for other pages defintion. -->
<definition name="site.mainLayout" path="/layout/mainPageLayout.jsp">
<put name="header" value="/layout/mainPageHeader.jsp" />
<put name="titlebar" value="/layout/mainPageTitleBar.jsp" />
<put name="rowlinks" value="/layout/mainPageRowLinks.jsp" />
<put name="spacerbar" value="/layout/mainPageSpacerBar.jsp" />
<put name="mainbody" value="" />
<put name="footer" value="/layout/mainPageFooter.jsp" />
</definition>
<!-- ======================================================= -->
<!-- Index page definition -->
<!-- ======================================================= -->
<definition name="home.page" extends="site.mainLayout" >
<put name="mainbody" value="home.page.layout" />
</definition>
<definition name="home.page.layout" path="/layout/homePageBodyLayout.jsp" >
<put name="leftportals" value="/leftPortals/index.jsp" />
<put name="bodycontent" value="/home/index.jsp" />
<put name="rightportals" value="/rightPortals/index.jsp" />
</definition>
<definition name="logon.page" extends="site.mainLayout" >
<put name="mainbody" value="logon.page.layout" />
</definition>
<definition name="logon.page.layout" path="/layout/homePageBodyLayout.jsp" >
<put name="leftportals" value="/leftPortals/index.jsp" />
<put name="bodycontent" value="/logon/index.jsp" />
<put name="rightportals" value="/rightPortals/index.jsp" />
</definition>
</tiles-definitions>
-- To unsubscribe, e-mail: <mailto:struts-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>

