[
https://issues.apache.org/struts/browse/STR-1306?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_41209
]
Antonio Petrelli commented on STR-1306:
---------------------------------------
Just a note: extending definitions declared using <tiles:definition> works with
Tiles 2.
> [tiles] extends fails in JSP-based Definitions
> ----------------------------------------------
>
> Key: STR-1306
> URL: https://issues.apache.org/struts/browse/STR-1306
> Project: Struts 1
> Issue Type: Improvement
> Components: Tiles
> Affects Versions: 1.1 RC1
> Environment: Operating System: All
> Platform: All
> Reporter: Evan Schnell
> Assignee: Struts Developers
> Priority: Minor
> Fix For: Future
>
>
> The extends keyword when used in a JSP-Based attempts to access a non-existent
> xml tile-defs file. The following code returns unable to find definition.
> <%@ taglib uri="struts-tiles" prefix="tiles"%>
> <%@ taglib uri="struts-bean" prefix="bean"%>
> <tiles:definition id="core_definition" page="/layout.jsp" scope="request">
> <tiles:put name="header" value="/header.jsp"/>
> <tiles:put name="sidenav" value="/sidenav.jsp"/>
> <tiles:put name="footer" value="/footer.jsp"/>
> <tiles:put name="title" value="empty"/>
> <tiles:put name="body" value="empty"/>
> </tiles:definition>
> <tiles:definition id="login_definition" extends="core_definition"
> scope="request">
> <tiles:put name="title">
> <bean:message key="login.title"/>
> </tiles:put>
> <tiles:put name="body" value="/login_body.jsp"/>
> </tiles:definition>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.