You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Antonio Petrelli (JIRA)" <ji...@apache.org> on 2007/06/08 21:44:26 UTC
[jira] Commented: (STR-1306) [tiles] extends fails in JSP-based
Definitions
[ 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.