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/02 21:50:45 UTC
[jira] Created: (TILES-362) EL expressions in XML definition files
are not evaluated
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.
[jira] Closed: (TILES-362) EL expressions in XML definition files
are not evaluated
Posted by "Antonio Petrelli (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/struts/browse/TILES-362?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Antonio Petrelli closed TILES-362.
----------------------------------
Resolution: Won't Fix
I am closing it since expressions are managed by "templateExpression" and "expression" attributes.
> 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.
[jira] Updated: (TILES-362) EL expressions in XML definition files
are not evaluated
Posted by "SYPECom Inc. (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/struts/browse/TILES-362?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
SYPECom Inc. updated TILES-362:
-------------------------------
Attachment: screenshot-1.jpg
Here is the error that occurs when running the test application with Tiles 2.1.2 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.
[jira] Updated: (TILES-362) EL expressions in XML definition files
are not evaluated
Posted by "SYPECom Inc. (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Commented: (TILES-362) EL expressions in XML definition
files are not evaluated
Posted by "Antonio Petrelli (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/struts/browse/TILES-362?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45551#action_45551 ]
Antonio Petrelli commented on TILES-362:
----------------------------------------
I am very sorry, I forgot that, for EL expressions, you have to use the "templateExpression" (and not "template").
The EL tutorial page has changed accordingly.
http://tiles.apache.org/framework/tutorial/advanced/el-support.html
> 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.
[jira] Issue Comment Edited: (TILES-362) EL expressions in XML
definition files are not evaluated
Posted by "SYPECom Inc. (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/struts/browse/TILES-362?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45549#action_45549 ]
sypecom edited comment on TILES-362 at 2/2/09 6:11 PM:
------------------------------------------------------------
Screenshot 1 shows the error that occurs when running the test application with Tiles 2.1.2 jars.
was (Author: sypecom):
Here is the error that occurs when running the test application with Tiles 2.1.2 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.
[jira] Updated: (TILES-362) EL expressions in XML definition files
are not evaluated
Posted by "SYPECom Inc. (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/struts/browse/TILES-362?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
SYPECom Inc. updated TILES-362:
-------------------------------
Attachment: screenshot-2.jpg
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.
[jira] Issue Comment Edited: (TILES-362) EL expressions in XML
definition files are not evaluated
Posted by "SYPECom Inc. (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Commented: (TILES-362) EL expressions in XML definition
files are not evaluated
Posted by "SYPECom Inc. (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/struts/browse/TILES-362?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45556#action_45556 ]
SYPECom Inc. commented on TILES-362:
------------------------------------
Thank you Antonio for checking this out so quickly!
It does indeed work much better with the templateExpression parameter :)
> 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.
[jira] Commented: (TILES-362) EL expressions in XML definition
files are not evaluated
Posted by "Antonio Petrelli (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/struts/browse/TILES-362?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45547#action_45547 ]
Antonio Petrelli commented on TILES-362:
----------------------------------------
Can you attach a test case please?
> 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.