Expression Language usage in tile definition
--------------------------------------------

                 Key: TILES-360
                 URL: https://issues.apache.org/struts/browse/TILES-360
             Project: Tiles
          Issue Type: Bug
    Affects Versions: 2.1.1
         Environment: Tomcat 5.5.27
            Reporter: Scott Stanlick


I just ran into something very strange!  Consider the following definition:

        <definition name="myapp.homePage" 
template="/WEB-INF/layouts/page-container.jsp">
                <put-attribute name="title" value="${title}" />
                <put-attribute name="top" 
value="/WEB-INF/tiles/main/header-top.jsp" />
                <put-attribute name="middle" 
value="/WEB-INF/tiles/main/header-middle.jsp" />
                <put-attribute name="bottom" 
value="/WEB-INF/tiles/main/header-bottom.jsp" />
                <put-attribute name="breadcrumbs" 
value="/WEB-INF/tiles/main/header-breadcrumbs.jsp" />
                  ....
        </definition>

If the value for the substitution ${title} contains a hyphen as in 
display-customer, I get an eventual out of memory error.  If I set a break 
point in my code and change the variable by removing the hyphen, it works fine! 
 

Peace,
Scott

My build path:

 Directory of C:\apache-tomcat-5.5.27\webapps\struts2inaction\WEB-INF\lib

01/23/2009  08:50 AM    <DIR>          .
01/23/2009  08:50 AM    <DIR>          ..
01/22/2009  07:13 PM           324,238 cglib-nodep-2.1_3.jar
01/22/2009  07:13 PM           188,671 commons-beanutils-1.7.0.jar
01/22/2009  07:13 PM           571,259 commons-collections-3.2.jar
01/22/2009  07:13 PM           143,602 commons-digester-1.8.jar
01/22/2009  07:13 PM            57,779 commons-fileupload-1.2.1.jar
01/22/2009  07:13 PM            87,776 commons-io-1.3.2.jar
01/22/2009  07:13 PM           245,274 commons-lang-2.3.jar
01/22/2009  07:13 PM            38,015 commons-logging-1.0.4.jar
01/22/2009  07:13 PM           510,840 derbyclient.jar
01/22/2009  07:13 PM            29,309 el-api-1.0.jar
01/22/2009  07:13 PM           863,477 freemarker-2.3.12.jar
01/22/2009  07:13 PM            68,107 gdata-base-1.0.jar
01/22/2009  07:13 PM             1,419 gdata-client-meta-1.0.jar
01/22/2009  07:13 PM           485,494 gdata-core-1.0.jar
01/22/2009  07:13 PM            53,907 gdata-media-1.0.jar
01/22/2009  07:13 PM           102,129 jasper-el-6.0.16.jar
01/22/2009  07:13 PM            16,905 jstl.jar
01/22/2009  07:13 PM           130,539 junit.jar
01/23/2009  08:50 AM                 0 list.txt
01/22/2009  07:13 PM           391,834 log4j-1.2.15.jar
01/22/2009  07:13 PM           709,922 mysql-connector-java-5.1.7-bin.jar
01/22/2009  07:13 PM           168,081 ognl-2.6.11.jar
01/22/2009  07:13 PM         2,838,649 spring.jar
01/22/2009  07:13 PM           293,750 standard.jar
01/22/2009  07:13 PM            39,251 struts2-config-browser-plugin-2.1.2.jar
01/22/2009  07:13 PM           713,305 struts2-core-2.1.2.jar
01/22/2009  07:13 PM             9,433 struts2-spring-plugin-2.1.2.jar
01/22/2009  07:13 PM            16,551 struts2-tiles-plugin-2.1.2.jar
01/22/2009  07:13 PM            25,787 tiles-api-2.1.1.jar
01/22/2009  07:13 PM           132,169 tiles-core-2.1.1.jar
01/22/2009  07:13 PM            52,287 tiles-jsp-2.1.1.jar
01/22/2009  07:13 PM            52,605 tiles-servlet-2.1.1.jar
01/22/2009  07:13 PM           521,827 xwork-2.1.1.jar
              33 File(s)      9,884,191 bytes
               2 Dir(s)  83,398,139,904 bytes free


Sorry this looks like hell, but I had the perfect JIRA constructed and when I 
pressed Create I got the message that I couldn't create as Anonymous! Dooooooh

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to