[
https://issues.apache.org/struts/browse/TILES-121?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_40317
]
Antonio Petrelli commented on TILES-121:
----------------------------------------
I think I got it :-)
The DTD for Tiles configuration files changed a lot from 2.0.0 to 2.0.1, so you
have to change all your configuration files.
If you turn validation on (that's the default) you should notice some
exceptions at the startup of the webapp.
For a hint, your definition must be rewritten this way:
<definition name="base_layout" template="/base_layout.jsp">
<put-attribute name="footer" type="template" value="/footer.jsp"/>
</definition>
Check your XML file against the latest DTD. Notice that's not the one in the
public URL:
http://tiles.apache.org/dtds/tiles-config_2_0.dtd
but the one you have in the distribution:
org/apache/tiles/resources/tiles-config_2_0.dtd
For now I am closing this issue.
> <tiles:insertAttribute does not work in 2.0.1
> ---------------------------------------------
>
> Key: TILES-121
> URL: https://issues.apache.org/struts/browse/TILES-121
> Project: Tiles
> Issue Type: Bug
> Components: tiles-core
> Affects Versions: 2.0.1
> Reporter: Jacky Chan
> Priority: Critical
>
> I use following code in jsp file:
> <tiles:insertAttribute name="footer"/>
> It is fine in 2.0.0, but it reports Attribute 'footer' not found.
> in InsertAttributeTag.java file, the following code return null,
> evaluatingContext.getAttribute(name);
> Please take a look. thanks.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.