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:12:45 UTC

[jira] Issue Comment Edited: (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:comment-tabpanel&focusedCommentId=45550#action_45550 ] 

sypecom edited comment on TILES-362 at 2/2/09 6:12 PM:
------------------------------------------------------------

Screenshot 2 shows the expected behavior of the test application, which works with Tiles 2.1.1 jars.

      was (Author: sypecom):
    Here is the expected behavior of the test application, which works with Tiles 2.1.1 jars.
  
> 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: screenshot-1.jpg, screenshot-2.jpg, 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.