EL expressions in XML definition files are not evaluated
--------------------------------------------------------
Key: TILES-362
URL: https://issues.apache.org/struts/browse/TILES-362
Project: Tiles
Issue Type: Bug
Affects Versions: 2.1.2
Environment: Tomcat 6.0.18, Tiles 2.1.2, EL support enabled
Reporter: SYPECom Inc.
Tiles 2.1.2 apparently no longer evaluates EL expressions in XML definition
files, but it did in 2.1.1.
To determine that only 2.1.2 is affected, I first confirmed that the following
definition worked as expected (with tiles-api-2.1.1.jar, tiles-core-2.1.1.jar,
tiles-jsp-2.1.1.jar, tiles-servlet-2.1.1.jar installed and the web.xml file
configured with the proper ELAttributeEvaluator as documented):
<definition name="test" template="/templates/template-${param.tmpl}.jsp">
<put-attribute name="subtest" value="/somefragment.jsp" />
</definition>
(called http://127.0.0.1/test.tiles?tmpl=mytemplate and it dit return the page
template as expected)
Then by replacing the four Tiles jars with 2.1.2 versions (tiles-api-2.1.2.jar,
tiles-core-2.1.2.jar, tiles-jsp-2.1.2.jar, tiles-servlet-2.1.2.jar) and trying
the definition again (http://127.0.0.1/test.tiles?tmpl=mytemplate), Tomcat
reports a 404 error on /collaba-templates/template-${param.presentation}.jsp
I replaced the 2.1.2 jars with the 2.1.1 jars and it started working again.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.