You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@tiles.apache.org by "SYPECom Inc. (JIRA)" <ji...@apache.org> on 2009/02/03 03:08:45 UTC

[jira] Updated: (TILES-362) EL expressions in XML definition files are not evaluated

     [ https://issues.apache.org/struts/browse/TILES-362?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

SYPECom Inc. updated TILES-362:
-------------------------------

    Attachment: testapp.zip

Here is a test application with which I reproduced the problem I described.

To reproduce test, follow instructions in enclosed index.html file.

> 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.
>         Attachments: testapp.zip
>
>
> 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.