tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r896913 - in /tomcat/trunk/test: org/apache/el/ org/apache/jasper/ org/apache/jasper/compiler/ webapp/ webapp/WEB-INF/ webapp/WEB-INF/tags/
Date Thu, 07 Jan 2010 16:08:49 GMT
Author: markt
Date: Thu Jan  7 16:06:45 2010
New Revision: 896913

URL: http://svn.apache.org/viewvc?rev=896913&view=rev
Log:
Add various EL test cases, mostly extracted from local test JSPs I have used for individual issues.
Thanks to kkolinko and the numerous bug reporters that provided the basis for many of these.
At present, although this is Tomcat 7, the tests only cover JSP 2.1 functionality.

Added:
    tomcat/trunk/test/org/apache/el/TestELInJsp.java   (with props)
    tomcat/trunk/test/org/apache/el/TesterFunctions.java   (with props)
    tomcat/trunk/test/org/apache/jasper/
    tomcat/trunk/test/org/apache/jasper/compiler/
    tomcat/trunk/test/org/apache/jasper/compiler/TestGenerator.java   (with props)
    tomcat/trunk/test/org/apache/jasper/compiler/TestValidator.java   (with props)
    tomcat/trunk/test/webapp/
    tomcat/trunk/test/webapp/WEB-INF/
    tomcat/trunk/test/webapp/WEB-INF/tags/
    tomcat/trunk/test/webapp/WEB-INF/tags/echo-double.tag   (with props)
    tomcat/trunk/test/webapp/WEB-INF/tags/echo-long.tag   (with props)
    tomcat/trunk/test/webapp/WEB-INF/tags/echo.tag   (with props)
    tomcat/trunk/test/webapp/WEB-INF/test.tld   (with props)
    tomcat/trunk/test/webapp/WEB-INF/web.xml   (with props)
    tomcat/trunk/test/webapp/bug42565.jsp   (with props)
    tomcat/trunk/test/webapp/bug44994.jsp   (with props)
    tomcat/trunk/test/webapp/bug45015a.jsp   (with props)
    tomcat/trunk/test/webapp/bug45015b.jsp   (with props)
    tomcat/trunk/test/webapp/bug45427.jsp   (with props)
    tomcat/trunk/test/webapp/bug45451.jspf   (with props)
    tomcat/trunk/test/webapp/bug45451a.jsp   (with props)
    tomcat/trunk/test/webapp/bug45451b.jsp   (with props)
    tomcat/trunk/test/webapp/bug45451c.jsp   (with props)
    tomcat/trunk/test/webapp/bug45451d.jspx   (with props)
    tomcat/trunk/test/webapp/bug45511.jsp   (with props)
    tomcat/trunk/test/webapp/bug46381.jsp   (with props)
    tomcat/trunk/test/webapp/bug46596.jsp   (with props)
    tomcat/trunk/test/webapp/bug47331.jsp   (with props)
    tomcat/trunk/test/webapp/bug47413.jsp   (with props)
    tomcat/trunk/test/webapp/bug48112.jsp   (with props)
    tomcat/trunk/test/webapp/el-misc.jsp   (with props)
Modified:
    tomcat/trunk/test/org/apache/el/TestELEvaluation.java

Modified: tomcat/trunk/test/org/apache/el/TestELEvaluation.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/el/TestELEvaluation.java?rev=896913&r1=896912&r2=896913&view=diff
==============================================================================
--- tomcat/trunk/test/org/apache/el/TestELEvaluation.java (original)
+++ tomcat/trunk/test/org/apache/el/TestELEvaluation.java Thu Jan  7 16:06:45 2010
@@ -137,7 +137,7 @@
             if ("trim".equals(localName)) {
                 Method m;
                 try {
-                    m = this.getClass().getMethod("trim", String.class);
+                    m = TesterFunctions.class.getMethod("trim", String.class);
                     return m;
                 } catch (SecurityException e) {
                     // Ignore
@@ -147,9 +147,5 @@
             }
             return null;
         }
-        
-        public static String trim(String input) {
-            return input.trim();
-        }
     }
 }

Added: tomcat/trunk/test/org/apache/el/TestELInJsp.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/el/TestELInJsp.java?rev=896913&view=auto
==============================================================================
--- tomcat/trunk/test/org/apache/el/TestELInJsp.java (added)
+++ tomcat/trunk/test/org/apache/el/TestELInJsp.java Thu Jan  7 16:06:45 2010
@@ -0,0 +1,276 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.el;
+
+import java.io.File;
+
+import org.apache.catalina.startup.Tomcat;
+import org.apache.catalina.startup.TomcatBaseTest;
+import org.apache.tomcat.util.buf.ByteChunk;
+
+public class TestELInJsp extends TomcatBaseTest {
+    
+    public void testBug42565() throws Exception {
+        Tomcat tomcat = getTomcatInstance();
+
+        File appDir = 
+            new File("test/webapp");
+        // app dir is relative to server home
+        tomcat.addWebapp(null, "/test", appDir.getAbsolutePath());
+        
+        tomcat.start();
+
+        ByteChunk res = getUrl("http://localhost:" + getPort() +
+                "/test/bug42565.jsp");
+        
+        String result = res.toString();
+        assertTrue(result.indexOf("00-false") > 0);
+        assertTrue(result.indexOf("01-false") > 0);
+        assertTrue(result.indexOf("02-false") > 0);
+        assertTrue(result.indexOf("03-false") > 0);
+        assertTrue(result.indexOf("04-false") > 0);
+        assertTrue(result.indexOf("05-false") > 0);
+        assertTrue(result.indexOf("06-false") > 0);
+        assertTrue(result.indexOf("07-false") > 0);
+        assertTrue(result.indexOf("08-false") > 0);
+        assertTrue(result.indexOf("09-false") > 0);
+        assertTrue(result.indexOf("10-false") > 0);
+        assertTrue(result.indexOf("11-false") > 0);
+        assertTrue(result.indexOf("12-false") > 0);
+        assertTrue(result.indexOf("13-false") > 0);
+        assertTrue(result.indexOf("14-false") > 0);
+        assertTrue(result.indexOf("15-false") > 0);
+    }
+
+    public void testBug44994() throws Exception {
+        Tomcat tomcat = getTomcatInstance();
+
+        File appDir = 
+            new File("test/webapp");
+        // app dir is relative to server home
+        tomcat.addWebapp(null, "/test", appDir.getAbsolutePath());
+        
+        tomcat.start();
+
+        ByteChunk res = getUrl("http://localhost:" + getPort() +
+                "/test/bug44994.jsp");
+        
+        String result = res.toString();
+        assertTrue(result.indexOf("00-none") > 0);
+        assertTrue(result.indexOf("01-one") > 0);
+        assertTrue(result.indexOf("02-many") > 0);
+    }
+
+    public void testBug45427() throws Exception {
+        Tomcat tomcat = getTomcatInstance();
+
+        File appDir = 
+            new File("test/webapp");
+        // app dir is relative to server home
+        tomcat.addWebapp(null, "/test", appDir.getAbsolutePath());
+        
+        tomcat.start();
+
+        ByteChunk res = getUrl("http://localhost:" + getPort() +
+                "/test/bug45427.jsp");
+        
+        String result = res.toString();
+        // Warning: JSP attribute escaping != Java String escaping
+        assertTrue(result.indexOf("00-hello world") > 0);
+        assertTrue(result.indexOf("01-hello 'world") > 0);
+        assertTrue(result.indexOf("02-hello \"world") > 0);
+        assertTrue(result.indexOf("03-hello world") > 0);
+        assertTrue(result.indexOf("04-hello 'world") > 0);
+        assertTrue(result.indexOf("05-hello \"world") > 0);
+        assertTrue(result.indexOf("06-hello world") > 0);
+        assertTrue(result.indexOf("07-hello 'world") > 0);
+        assertTrue(result.indexOf("08-hello \"world") > 0);
+        assertTrue(result.indexOf("09-hello world") > 0);
+        assertTrue(result.indexOf("10-hello 'world") > 0);
+        assertTrue(result.indexOf("11-hello \"world") > 0);
+        assertTrue(result.indexOf("12-hello world") > 0);
+        assertTrue(result.indexOf("13-hello 'world") > 0);
+        assertTrue(result.indexOf("14-hello \"world") > 0);
+        assertTrue(result.indexOf("15-hello world") > 0);
+        assertTrue(result.indexOf("16-hello 'world") > 0);
+        assertTrue(result.indexOf("17-hello \"world") > 0);
+    }
+
+    public void testBug45451() throws Exception {
+        Tomcat tomcat = getTomcatInstance();
+
+        File appDir = 
+            new File("test/webapp");
+        // app dir is relative to server home
+        tomcat.addWebapp(null, "/test", appDir.getAbsolutePath());
+        
+        tomcat.start();
+
+        ByteChunk res = /* getUrl("http://localhost:" + getPort() +
+                "/test/bug45451a.jsp");
+        
+        String result = res.toString();
+        // Warning: JSP attribute escaping != Java String escaping
+        assertTrue(result.indexOf("00-\\'hello world\\'") > 0);
+        assertTrue(result.indexOf("01-\\'hello world\\'") > 0);
+        assertTrue(result.indexOf("02-\\'hello world\\'") > 0);
+        assertTrue(result.indexOf("03-\\'hello world\\'") > 0);
+        
+        res = */ getUrl("http://localhost:" + getPort() + "/test/bug45451b.jsp");
+        String result = res.toString();
+        // Warning: JSP attribute escaping != Java String escaping
+        assertTrue(result.indexOf("00-2") > 0);
+        assertTrue(result.indexOf("01-${1+1}") > 0);
+        assertTrue(result.indexOf("02-\\${1+1}") > 0);
+        assertTrue(result.indexOf("03-\\\\${1+1}") > 0);
+        assertTrue(result.indexOf("04-2") > 0);
+        assertTrue(result.indexOf("05-${1+1}") > 0);
+        assertTrue(result.indexOf("06-\\2") > 0);
+        assertTrue(result.indexOf("07-\\${1+1}") > 0);
+        assertTrue(result.indexOf("08-\\\\2") > 0);
+        
+        res = getUrl("http://localhost:" + getPort() + "/test/bug45451c.jsp");
+        result = res.toString();
+        // Warning: JSP attribute escaping != Java String escaping
+        assertTrue(result.indexOf("00-${1+1}") > 0);
+        assertTrue(result.indexOf("01-\\${1+1}") > 0);
+        assertTrue(result.indexOf("02-\\\\${1+1}") > 0);
+        assertTrue(result.indexOf("03-\\\\\\${1+1}") > 0);
+        assertTrue(result.indexOf("04-${1+1}") > 0);
+        assertTrue(result.indexOf("05-\\${1+1}") > 0);
+        assertTrue(result.indexOf("06-\\\\${1+1}") > 0);
+        assertTrue(result.indexOf("07-\\\\\\${1+1}") > 0);
+        assertTrue(result.indexOf("08-\\\\\\\\${1+1}") > 0);
+
+        res = getUrl("http://localhost:" + getPort() + "/test/bug45451d.jspx");
+        result = res.toString();
+        // Warning: JSP attribute escaping != Java String escaping
+        assertTrue(result.indexOf("00-2") > 0);
+        assertTrue(result.indexOf("01-${1+1}") > 0);
+        assertTrue(result.indexOf("02-\\${1+1}") > 0);
+        assertTrue(result.indexOf("03-\\\\${1+1}") > 0);
+        assertTrue(result.indexOf("04-2") > 0);
+        assertTrue(result.indexOf("05-${1+1}") > 0);
+        assertTrue(result.indexOf("06-\\2") > 0);
+        assertTrue(result.indexOf("07-\\${1+1}") > 0);
+        assertTrue(result.indexOf("08-\\\\2") > 0);
+    }
+
+    public void testBug45511() throws Exception {
+        Tomcat tomcat = getTomcatInstance();
+
+        File appDir = 
+            new File("test/webapp");
+        // app dir is relative to server home
+        tomcat.addWebapp(null, "/test", appDir.getAbsolutePath());
+        
+        tomcat.start();
+
+        ByteChunk res = getUrl("http://localhost:" + getPort() +
+                "/test/bug45511.jsp");
+        
+        String result = res.toString();
+        assertTrue(result.indexOf("00-true") > 0);
+        assertTrue(result.indexOf("01-false") > 0);
+    }
+
+    public void testBug46596() throws Exception {
+        Tomcat tomcat = getTomcatInstance();
+
+        File appDir = 
+            new File("test/webapp");
+        // app dir is relative to server home
+        tomcat.addWebapp(null, "/test", appDir.getAbsolutePath());
+        
+        tomcat.start();
+
+        ByteChunk res = getUrl("http://localhost:" + getPort() +
+                "/test/bug46596.jsp");
+        assertTrue(res.toString().indexOf("{OK}") > 0);
+    }
+    
+    public void testBug47413() throws Exception {
+        Tomcat tomcat = getTomcatInstance();
+
+        File appDir = 
+            new File("test/webapp");
+        // app dir is relative to server home
+        tomcat.addWebapp(null, "/test", appDir.getAbsolutePath());
+        
+        tomcat.start();
+
+        ByteChunk res = getUrl("http://localhost:" + getPort() +
+                "/test/bug47413.jsp");
+        
+        String result = res.toString();
+        assertTrue(result.indexOf("00-hello world") > 0);
+        assertTrue(result.indexOf("01-hello world") > 0);
+        assertTrue(result.indexOf("02-3.22") > 0);
+        assertTrue(result.indexOf("03-3.22") > 0);
+        assertTrue(result.indexOf("04-17") > 0);
+        assertTrue(result.indexOf("05-17") > 0);
+        assertTrue(result.indexOf("06-hello world") > 0);
+        assertTrue(result.indexOf("07-hello world") > 0);
+        assertTrue(result.indexOf("08-0.0") > 0);
+        assertTrue(result.indexOf("09-0.0") > 0);
+        assertTrue(result.indexOf("10-0") > 0);
+        assertTrue(result.indexOf("11-0") > 0);
+    }
+
+    public void testBug48112() throws Exception {
+        Tomcat tomcat = getTomcatInstance();
+
+        File appDir = 
+            new File("test/webapp");
+        // app dir is relative to server home
+        tomcat.addWebapp(null, "/test", appDir.getAbsolutePath());
+        
+        tomcat.start();
+
+        ByteChunk res = getUrl("http://localhost:" + getPort() +
+                "/test/bug48112.jsp");
+        assertTrue(res.toString().indexOf("{OK}") > 0);
+    }
+    
+    public void testELMisc() throws Exception {
+        Tomcat tomcat = getTomcatInstance();
+
+        File appDir = 
+            new File("test/webapp");
+        // app dir is relative to server home
+        tomcat.addWebapp(null, "/test", appDir.getAbsolutePath());
+        
+        tomcat.start();
+
+        ByteChunk res = getUrl("http://localhost:" + getPort() +
+                "/test/el-misc.jsp");
+        String result = res.toString();
+        assertTrue(result.indexOf("00-\\\\\\\"${'hello world'}") > 0);
+        assertTrue(result.indexOf("01-\\\\\\\"\\${'hello world'}") > 0);
+        assertTrue(result.indexOf("02-\\\"\\${'hello world'}") > 0);
+        assertTrue(result.indexOf("03-\\\"\\${'hello world'}") > 0);
+        assertTrue(result.indexOf("2az-04") > 0);
+        assertTrue(result.indexOf("05-a2z") > 0);
+        assertTrue(result.indexOf("06-az2") > 0);
+        assertTrue(result.indexOf("2az-07") > 0);
+        assertTrue(result.indexOf("08-a2z") > 0);
+        assertTrue(result.indexOf("09-az2") > 0);
+    }
+
+
+}

Propchange: tomcat/trunk/test/org/apache/el/TestELInJsp.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tomcat/trunk/test/org/apache/el/TestELInJsp.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision

Added: tomcat/trunk/test/org/apache/el/TesterFunctions.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/el/TesterFunctions.java?rev=896913&view=auto
==============================================================================
--- tomcat/trunk/test/org/apache/el/TesterFunctions.java (added)
+++ tomcat/trunk/test/org/apache/el/TesterFunctions.java Thu Jan  7 16:06:45 2010
@@ -0,0 +1,24 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.el;
+
+public class TesterFunctions {
+    public static String trim(String input) {
+        return input.trim();
+    }
+}

Propchange: tomcat/trunk/test/org/apache/el/TesterFunctions.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tomcat/trunk/test/org/apache/el/TesterFunctions.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision

Added: tomcat/trunk/test/org/apache/jasper/compiler/TestGenerator.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/jasper/compiler/TestGenerator.java?rev=896913&view=auto
==============================================================================
--- tomcat/trunk/test/org/apache/jasper/compiler/TestGenerator.java (added)
+++ tomcat/trunk/test/org/apache/jasper/compiler/TestGenerator.java Thu Jan  7 16:06:45 2010
@@ -0,0 +1,60 @@
+package org.apache.jasper.compiler;
+
+import java.io.File;
+import java.io.IOException;
+
+import org.apache.catalina.startup.Tomcat;
+import org.apache.catalina.startup.TomcatBaseTest;
+import org.apache.tomcat.util.buf.ByteChunk;
+
+public class TestGenerator extends TomcatBaseTest {
+    
+    public void testBug45015a() throws Exception {
+        Tomcat tomcat = getTomcatInstance();
+
+        File appDir = 
+            new File("test/webapp");
+        // app dir is relative to server home
+        tomcat.addWebapp(null, "/test", appDir.getAbsolutePath());
+        
+        tomcat.start();
+
+        ByteChunk res = getUrl("http://localhost:" + getPort() +
+                "/test/bug45015a.jsp");
+        
+        String result = res.toString();
+        // Beware of the differences between escaping in JSP attributes and
+        // in Java Strings
+        assertTrue(result.indexOf("00-hello 'world'") > 0);
+        assertTrue(result.indexOf("01-hello 'world") > 0);
+        assertTrue(result.indexOf("02-hello world'") > 0);
+        assertTrue(result.indexOf("03-hello world'") > 0);
+        assertTrue(result.indexOf("04-hello world\"") > 0);
+        assertTrue(result.indexOf("05-hello \"world\"") > 0);
+        assertTrue(result.indexOf("06-hello \"world") > 0);
+        assertTrue(result.indexOf("07-hello world\"") > 0);
+        assertTrue(result.indexOf("08-hello world'") > 0);
+        assertTrue(result.indexOf("09-hello world\"") > 0);
+    }
+
+    public void testBug45015b() throws Exception {
+        Tomcat tomcat = getTomcatInstance();
+
+        File appDir = 
+            new File("test/webapp");
+        // app dir is relative to server home
+        tomcat.addWebapp(null, "/test", appDir.getAbsolutePath());
+        
+        tomcat.start();
+
+        Exception e = null;
+        try {
+            getUrl("http://localhost:" + getPort() + "/test/bug45015b.jsp");
+        } catch (IOException ioe) {
+            e = ioe;
+        }
+
+        // Failure is expected
+        assertNotNull(e);
+    }
+}

Propchange: tomcat/trunk/test/org/apache/jasper/compiler/TestGenerator.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tomcat/trunk/test/org/apache/jasper/compiler/TestGenerator.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision

Added: tomcat/trunk/test/org/apache/jasper/compiler/TestValidator.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/jasper/compiler/TestValidator.java?rev=896913&view=auto
==============================================================================
--- tomcat/trunk/test/org/apache/jasper/compiler/TestValidator.java (added)
+++ tomcat/trunk/test/org/apache/jasper/compiler/TestValidator.java Thu Jan  7 16:06:45 2010
@@ -0,0 +1,31 @@
+package org.apache.jasper.compiler;
+
+import java.io.File;
+import java.io.IOException;
+
+import org.apache.catalina.startup.Tomcat;
+import org.apache.catalina.startup.TomcatBaseTest;
+
+public class TestValidator extends TomcatBaseTest {
+    
+    public void testBug47331() throws Exception {
+        Tomcat tomcat = getTomcatInstance();
+
+        File appDir = 
+            new File("test/webapp");
+        // app dir is relative to server home
+        tomcat.addWebapp(null, "/test", appDir.getAbsolutePath());
+        
+        tomcat.start();
+
+        Exception e = null;
+        try {
+            getUrl("http://localhost:" + getPort() + "/test/bug47331.jsp");
+        } catch (IOException ioe) {
+            e = ioe;
+        }
+
+        // Failure is expected
+        assertNotNull(e);
+    }
+}

Propchange: tomcat/trunk/test/org/apache/jasper/compiler/TestValidator.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tomcat/trunk/test/org/apache/jasper/compiler/TestValidator.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision

Added: tomcat/trunk/test/webapp/WEB-INF/tags/echo-double.tag
URL: http://svn.apache.org/viewvc/tomcat/trunk/test/webapp/WEB-INF/tags/echo-double.tag?rev=896913&view=auto
==============================================================================
--- tomcat/trunk/test/webapp/WEB-INF/tags/echo-double.tag (added)
+++ tomcat/trunk/test/webapp/WEB-INF/tags/echo-double.tag Thu Jan  7 16:06:45 2010
@@ -0,0 +1,3 @@
+<%@ tag %><%@
+attribute name="echo" type="java.lang.Double"%><%@
+attribute name="index" type="java.lang.String" %><p>${index}-${echo}</p>
\ No newline at end of file

Propchange: tomcat/trunk/test/webapp/WEB-INF/tags/echo-double.tag
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision

Added: tomcat/trunk/test/webapp/WEB-INF/tags/echo-long.tag
URL: http://svn.apache.org/viewvc/tomcat/trunk/test/webapp/WEB-INF/tags/echo-long.tag?rev=896913&view=auto
==============================================================================
--- tomcat/trunk/test/webapp/WEB-INF/tags/echo-long.tag (added)
+++ tomcat/trunk/test/webapp/WEB-INF/tags/echo-long.tag Thu Jan  7 16:06:45 2010
@@ -0,0 +1,3 @@
+<%@ tag %><%@
+attribute name="echo" type="java.lang.Long"%><%@
+attribute name="index" type="java.lang.String" %><p>${index}-${echo}</p>
\ No newline at end of file

Propchange: tomcat/trunk/test/webapp/WEB-INF/tags/echo-long.tag
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision

Added: tomcat/trunk/test/webapp/WEB-INF/tags/echo.tag
URL: http://svn.apache.org/viewvc/tomcat/trunk/test/webapp/WEB-INF/tags/echo.tag?rev=896913&view=auto
==============================================================================
--- tomcat/trunk/test/webapp/WEB-INF/tags/echo.tag (added)
+++ tomcat/trunk/test/webapp/WEB-INF/tags/echo.tag Thu Jan  7 16:06:45 2010
@@ -0,0 +1 @@
+<%@ tag %><%@ attribute name="echo" type="java.lang.String"%><p>${echo}</p>
\ No newline at end of file

Propchange: tomcat/trunk/test/webapp/WEB-INF/tags/echo.tag
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision

Added: tomcat/trunk/test/webapp/WEB-INF/test.tld
URL: http://svn.apache.org/viewvc/tomcat/trunk/test/webapp/WEB-INF/test.tld?rev=896913&view=auto
==============================================================================
--- tomcat/trunk/test/webapp/WEB-INF/test.tld (added)
+++ tomcat/trunk/test/webapp/WEB-INF/test.tld Thu Jan  7 16:06:45 2010
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<taglib xmlns="http://java.sun.com/xml/ns/javaee"
+      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+      xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
+      http://java.sun.com/xml/ns/javaee/web-jsptaglibrary_2_1.xsd"
+      version="2.1">
+  <tlib-version>1.0</tlib-version>
+  <short-name>TesterFunctions</short-name>
+  <uri>http://tomcat.apache.org/testerFunctions</uri>
+  
+  <function>
+    <name>trim</name>
+    <function-class>org.apache.el.TesterFunctions</function-class>
+    <function-signature>
+      java.lang.String trim(java.lang.String)
+    </function-signature>
+  </function>
+</taglib>
\ No newline at end of file

Propchange: tomcat/trunk/test/webapp/WEB-INF/test.tld
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tomcat/trunk/test/webapp/WEB-INF/test.tld
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision

Added: tomcat/trunk/test/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/tomcat/trunk/test/webapp/WEB-INF/web.xml?rev=896913&view=auto
==============================================================================
--- tomcat/trunk/test/webapp/WEB-INF/web.xml (added)
+++ tomcat/trunk/test/webapp/WEB-INF/web.xml Thu Jan  7 16:06:45 2010
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<web-app xmlns="http://java.sun.com/xml/ns/javaee"
+  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
+                      http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
+  version="3.0"
+  metadata-complete="true">  
+
+  <display-name>Tomcat Test Application</display-name>
+  <description>
+     Used as part of the Tomcat unit tests when a full web application is
+     required.
+  </description>
+</web-app>
\ No newline at end of file

Propchange: tomcat/trunk/test/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tomcat/trunk/test/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision

Added: tomcat/trunk/test/webapp/bug42565.jsp
URL: http://svn.apache.org/viewvc/tomcat/trunk/test/webapp/bug42565.jsp?rev=896913&view=auto
==============================================================================
--- tomcat/trunk/test/webapp/bug42565.jsp (added)
+++ tomcat/trunk/test/webapp/bug42565.jsp Thu Jan  7 16:06:45 2010
@@ -0,0 +1,38 @@
+<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
+<%--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+--%>
+<html>
+  <head><title>Bug 42565 test case</title></head>
+  <body>
+    <tags:echo echo="00-${false?true:false}" />
+    <tags:echo echo="01-${false?true: false}" />
+    <tags:echo echo="02-${false?true :false}" />
+    <tags:echo echo="03-${false?true : false}" />
+    <tags:echo echo="04-${false? true:false}" />
+    <tags:echo echo="05-${false? true: false}" />
+    <tags:echo echo="06-${false? true :false}" />
+    <tags:echo echo="07-${false? true : false}" />
+    <tags:echo echo="08-${ false?true:false}" />
+    <tags:echo echo="09-${ false?true: false}" />
+    <tags:echo echo="10-${ false?true :false}" />
+    <tags:echo echo="11-${ false?true : false}" />
+    <tags:echo echo="12-${ false? true:false}" />
+    <tags:echo echo="13-${ false? true: false}" />
+    <tags:echo echo="14-${ false? true :false}" />
+    <tags:echo echo="15-${ false? true : false}" />
+  </body>
+</html>
\ No newline at end of file

Propchange: tomcat/trunk/test/webapp/bug42565.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tomcat/trunk/test/webapp/bug42565.jsp
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision

Added: tomcat/trunk/test/webapp/bug44994.jsp
URL: http://svn.apache.org/viewvc/tomcat/trunk/test/webapp/bug44994.jsp?rev=896913&view=auto
==============================================================================
--- tomcat/trunk/test/webapp/bug44994.jsp (added)
+++ tomcat/trunk/test/webapp/bug44994.jsp Thu Jan  7 16:06:45 2010
@@ -0,0 +1,25 @@
+<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
+<%--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+--%>
+<html>
+  <head><title>Bug 44994 test case</title></head>
+  <body>
+    <tags:echo echo="00-${0 lt 0 ? 1 lt 0 ? 'many': 'one': 'none'}" />
+    <tags:echo echo="01-${0 lt 1 ? 1 lt 1 ? 'many': 'one': 'none'}" />
+    <tags:echo echo="02-${0 lt 2 ? 1 lt 2 ? 'many': 'one': 'none'}" />
+  </body>
+</html>
\ No newline at end of file

Propchange: tomcat/trunk/test/webapp/bug44994.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tomcat/trunk/test/webapp/bug44994.jsp
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision

Added: tomcat/trunk/test/webapp/bug45015a.jsp
URL: http://svn.apache.org/viewvc/tomcat/trunk/test/webapp/bug45015a.jsp?rev=896913&view=auto
==============================================================================
--- tomcat/trunk/test/webapp/bug45015a.jsp (added)
+++ tomcat/trunk/test/webapp/bug45015a.jsp Thu Jan  7 16:06:45 2010
@@ -0,0 +1,32 @@
+<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
+<%--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+--%>
+<html>
+  <head><title>Bug 45015 test case A</title></head>
+  <body>
+    <tags:echo echo="00-hello 'world'" />
+    <tags:echo echo="01-hello 'world" />
+    <tags:echo echo="02-hello world'" />
+    <tags:echo echo="03-hello world\'" />
+    <tags:echo echo="04-hello world\"" />
+    <tags:echo echo='05-hello "world"' />
+    <tags:echo echo='06-hello "world' />
+    <tags:echo echo='07-hello world"' />
+    <tags:echo echo='08-hello world\'' />
+    <tags:echo echo='09-hello world\"' />
+  </body>
+</html>
\ No newline at end of file

Propchange: tomcat/trunk/test/webapp/bug45015a.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tomcat/trunk/test/webapp/bug45015a.jsp
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision

Added: tomcat/trunk/test/webapp/bug45015b.jsp
URL: http://svn.apache.org/viewvc/tomcat/trunk/test/webapp/bug45015b.jsp?rev=896913&view=auto
==============================================================================
--- tomcat/trunk/test/webapp/bug45015b.jsp (added)
+++ tomcat/trunk/test/webapp/bug45015b.jsp Thu Jan  7 16:06:45 2010
@@ -0,0 +1,23 @@
+<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
+<%--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+--%>
+<html>
+  <head><title>Bug 45015 test case B</title></head>
+  <body>
+    <tags:echo echo="hello "wo"rld" />
+  </body>
+</html>
\ No newline at end of file

Propchange: tomcat/trunk/test/webapp/bug45015b.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tomcat/trunk/test/webapp/bug45015b.jsp
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision

Added: tomcat/trunk/test/webapp/bug45427.jsp
URL: http://svn.apache.org/viewvc/tomcat/trunk/test/webapp/bug45427.jsp?rev=896913&view=auto
==============================================================================
--- tomcat/trunk/test/webapp/bug45427.jsp (added)
+++ tomcat/trunk/test/webapp/bug45427.jsp Thu Jan  7 16:06:45 2010
@@ -0,0 +1,41 @@
+<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
+<%--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+--%>
+<html>
+  <head><title>Bug 45427 test case</title></head>
+  <body>
+    <p>00-${'hello world'}</p>
+    <p>01-${'hello \'world'}</p>
+    <p>02-${'hello "world'}</p>
+    <p>03-${"hello world"}</p>
+    <p>04-${"hello 'world"}</p>
+    <p>05-${"hello \"world"}</p>
+
+    <tags:echo echo="06-${'hello world'}" />
+    <tags:echo echo="07-${'hello \\\'world'}" />
+    <tags:echo echo="08-${'hello \"world'}" />
+    <tags:echo echo="09-${\"hello world\"}" />
+    <tags:echo echo="10-${\"hello 'world\"}" />
+    <tags:echo echo="11-${\"hello \\\"world\"}" />
+    <tags:echo echo='12-${\'hello world\'}' />
+    <tags:echo echo='13-${\'hello \\\'world\'}' />
+    <tags:echo echo='14-${\'hello "world\'}' />
+    <tags:echo echo='15-${"hello world"}' />
+    <tags:echo echo='16-${"hello \'world"}' />
+    <tags:echo echo='17-${"hello \\\"world"}' />
+  </body>
+</html>
\ No newline at end of file

Propchange: tomcat/trunk/test/webapp/bug45427.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tomcat/trunk/test/webapp/bug45427.jsp
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision

Added: tomcat/trunk/test/webapp/bug45451.jspf
URL: http://svn.apache.org/viewvc/tomcat/trunk/test/webapp/bug45451.jspf?rev=896913&view=auto
==============================================================================
--- tomcat/trunk/test/webapp/bug45451.jspf (added)
+++ tomcat/trunk/test/webapp/bug45451.jspf Thu Jan  7 16:06:45 2010
@@ -0,0 +1,9 @@
+<p>00-${1+1}</p>
+<p>01-\${1+1}</p>
+<p>02-\\${1+1}</p>
+<p>03-\\\${1+1}</p>
+<tags:echo echo="04-${1+1}" />
+<tags:echo echo="05-\${1+1}" />
+<tags:echo echo="06-\\${1+1}" />
+<tags:echo echo="07-\\\${1+1}" />
+<tags:echo echo="08-\\\\${1+1}" />

Propchange: tomcat/trunk/test/webapp/bug45451.jspf
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision

Added: tomcat/trunk/test/webapp/bug45451a.jsp
URL: http://svn.apache.org/viewvc/tomcat/trunk/test/webapp/bug45451a.jsp?rev=896913&view=auto
==============================================================================
--- tomcat/trunk/test/webapp/bug45451a.jsp (added)
+++ tomcat/trunk/test/webapp/bug45451a.jsp Thu Jan  7 16:06:45 2010
@@ -0,0 +1,26 @@
+<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
+<%--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+--%>
+<html>
+  <head><title>Bug 45451 test case</title></head>
+  <body>
+    <tags:echo echo="00-\\\'${'hello world'}\\\'" />
+    <tags:echo echo="01-\\\'${\"hello world\"}\\\'" />
+    <tags:echo echo='02-\\\'${\'hello world\'}\\\'' />
+    <tags:echo echo='03-\\\'${"hello world"}\\\'' />
+  </body>
+</html>
\ No newline at end of file

Propchange: tomcat/trunk/test/webapp/bug45451a.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tomcat/trunk/test/webapp/bug45451a.jsp
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision

Added: tomcat/trunk/test/webapp/bug45451b.jsp
URL: http://svn.apache.org/viewvc/tomcat/trunk/test/webapp/bug45451b.jsp?rev=896913&view=auto
==============================================================================
--- tomcat/trunk/test/webapp/bug45451b.jsp (added)
+++ tomcat/trunk/test/webapp/bug45451b.jsp Thu Jan  7 16:06:45 2010
@@ -0,0 +1,2 @@
+<%@page isELIgnored="false" %>
+<%@ include file="bug45451.jspf" %>

Propchange: tomcat/trunk/test/webapp/bug45451b.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tomcat/trunk/test/webapp/bug45451b.jsp
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision

Added: tomcat/trunk/test/webapp/bug45451c.jsp
URL: http://svn.apache.org/viewvc/tomcat/trunk/test/webapp/bug45451c.jsp?rev=896913&view=auto
==============================================================================
--- tomcat/trunk/test/webapp/bug45451c.jsp (added)
+++ tomcat/trunk/test/webapp/bug45451c.jsp Thu Jan  7 16:06:45 2010
@@ -0,0 +1,2 @@
+<%@page isELIgnored="true" %>
+<%@ include file="bug45451.jspf" %>

Propchange: tomcat/trunk/test/webapp/bug45451c.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tomcat/trunk/test/webapp/bug45451c.jsp
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision

Added: tomcat/trunk/test/webapp/bug45451d.jspx
URL: http://svn.apache.org/viewvc/tomcat/trunk/test/webapp/bug45451d.jspx?rev=896913&view=auto
==============================================================================
--- tomcat/trunk/test/webapp/bug45451d.jspx (added)
+++ tomcat/trunk/test/webapp/bug45451d.jspx Thu Jan  7 16:06:45 2010
@@ -0,0 +1,19 @@
+<jsp:root
+  xmlns:bug45451="urn:jsptagdir:/WEB-INF/tags/bug45451"
+  xmlns:jsp="http://java.sun.com/JSP/Page" version="2.2"
+  xmlns:tags="urn:jsptagdir:/WEB-INF/tags" >
+  <jsp:directive.page isELIgnored="false" />
+<html>
+  <body>
+    <p>00-${1+1}</p>
+    <p>01-\${1+1}</p>
+    <p>02-\\${1+1}</p>
+    <p>03-\\\${1+1}</p>
+    <tags:echo echo="04-${1+1}" />
+    <tags:echo echo="05-\${1+1}" />
+    <tags:echo echo="06-\\${1+1}" />
+    <tags:echo echo="07-\\\${1+1}" />
+    <tags:echo echo="08-\\\\${1+1}" />
+  </body>
+</html>
+</jsp:root>
\ No newline at end of file

Propchange: tomcat/trunk/test/webapp/bug45451d.jspx
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision

Added: tomcat/trunk/test/webapp/bug45511.jsp
URL: http://svn.apache.org/viewvc/tomcat/trunk/test/webapp/bug45511.jsp?rev=896913&view=auto
==============================================================================
--- tomcat/trunk/test/webapp/bug45511.jsp (added)
+++ tomcat/trunk/test/webapp/bug45511.jsp Thu Jan  7 16:06:45 2010
@@ -0,0 +1,24 @@
+<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
+<%--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+--%>
+<html>
+  <head><title>Bug 45511 test case</title></head>
+  <body>
+    <tags:echo echo="00-${empty(null)}" />
+    <tags:echo echo="01-${not(true)}" />
+  </body>
+</html>
\ No newline at end of file

Propchange: tomcat/trunk/test/webapp/bug45511.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tomcat/trunk/test/webapp/bug45511.jsp
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision

Added: tomcat/trunk/test/webapp/bug46381.jsp
URL: http://svn.apache.org/viewvc/tomcat/trunk/test/webapp/bug46381.jsp?rev=896913&view=auto
==============================================================================
--- tomcat/trunk/test/webapp/bug46381.jsp (added)
+++ tomcat/trunk/test/webapp/bug46381.jsp Thu Jan  7 16:06:45 2010
@@ -0,0 +1,28 @@
+<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
+<%--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+--%>
+<html>
+  <head><title>Bug 46381 test case</title></head>
+  <%
+  pageContext.setAttribute("foo","hello");
+  pageContext.setAttribute("bar","world");
+  %>
+  <body>
+    <tags:echo echo="00-${foo}${bar}" />
+    <tags:echo echo="00-${foo}${bar}${undefined}" />
+  </body>
+</html>
\ No newline at end of file

Propchange: tomcat/trunk/test/webapp/bug46381.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tomcat/trunk/test/webapp/bug46381.jsp
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision

Added: tomcat/trunk/test/webapp/bug46596.jsp
URL: http://svn.apache.org/viewvc/tomcat/trunk/test/webapp/bug46596.jsp?rev=896913&view=auto
==============================================================================
--- tomcat/trunk/test/webapp/bug46596.jsp (added)
+++ tomcat/trunk/test/webapp/bug46596.jsp Thu Jan  7 16:06:45 2010
@@ -0,0 +1,25 @@
+<%@ taglib uri="http://tomcat.apache.org/testerFunctions" prefix="fn" %>
+<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
+<%--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+--%>
+<html>
+  <head><title>Bug 46596 test case</title></head>
+  <body>
+    <tags:echo echo="${fn:trim
+                              ('{OK}')}"/>
+  </body>
+</html>
\ No newline at end of file

Propchange: tomcat/trunk/test/webapp/bug46596.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tomcat/trunk/test/webapp/bug46596.jsp
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision

Added: tomcat/trunk/test/webapp/bug47331.jsp
URL: http://svn.apache.org/viewvc/tomcat/trunk/test/webapp/bug47331.jsp?rev=896913&view=auto
==============================================================================
--- tomcat/trunk/test/webapp/bug47331.jsp (added)
+++ tomcat/trunk/test/webapp/bug47331.jsp Thu Jan  7 16:06:45 2010
@@ -0,0 +1,23 @@
+<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
+<%--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+--%>
+<html>
+  <head><title>Bug 47331 test case</title></head>
+  <body>
+    <p>This is a #{'test'}</p>
+  </body>
+</html>
\ No newline at end of file

Propchange: tomcat/trunk/test/webapp/bug47331.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tomcat/trunk/test/webapp/bug47331.jsp
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision

Added: tomcat/trunk/test/webapp/bug47413.jsp
URL: http://svn.apache.org/viewvc/tomcat/trunk/test/webapp/bug47413.jsp?rev=896913&view=auto
==============================================================================
--- tomcat/trunk/test/webapp/bug47413.jsp (added)
+++ tomcat/trunk/test/webapp/bug47413.jsp Thu Jan  7 16:06:45 2010
@@ -0,0 +1,51 @@
+<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
+<%--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+--%>
+<jsp:useBean id="values" class="jsp2.examples.ValuesBean" />
+<html>
+  <head><title>Bug 47413 test case</title></head>
+  <body>
+    <jsp:setProperty name="values" property="string" value="${'hello'} wo${'rld'}"/>
+    <p>00-${values.string}</p>
+    <tags:echo echo="01-${'hello'} wo${'rld'}"/>
+
+    <jsp:setProperty name="values" property="double" value="${1+2}.${220}"/>
+    <p>02-${values.double}</p>
+    <tags:echo-double index="03" echo="${1+2}.${220}"/>
+    
+    <jsp:setProperty name="values" property="long" value="000${1}${7}"/>
+    <p>04-${values.long}</p>
+    <tags:echo-long index="05" echo="000${1}${7}"/>
+    
+    <jsp:setProperty name="values" property="string"
+                     value="${undefinedFoo}hello world${undefinedBar}"/>
+    <p>06-${values.string}</p>
+    <tags:echo echo="${undefinedFoo}07-hello world${undefinedBar}"/>
+
+    <jsp:setProperty name="values" property="double"
+                     value="${undefinedFoo}${undefinedBar}"/>
+    <p>08-${values.double}</p>
+    <tags:echo-double index="09" echo="${undefinedFoo}${undefinedBar}"/>
+
+    <jsp:setProperty name="values" property="long"
+                     value="${undefinedFoo}${undefinedBar}"/>
+    <p>10-${values.long}</p>
+    <tags:echo-long index="11" echo="${undefinedFoo}${undefinedBar}"/>
+
+  </body>
+</html>
+

Propchange: tomcat/trunk/test/webapp/bug47413.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tomcat/trunk/test/webapp/bug47413.jsp
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision

Added: tomcat/trunk/test/webapp/bug48112.jsp
URL: http://svn.apache.org/viewvc/tomcat/trunk/test/webapp/bug48112.jsp?rev=896913&view=auto
==============================================================================
--- tomcat/trunk/test/webapp/bug48112.jsp (added)
+++ tomcat/trunk/test/webapp/bug48112.jsp Thu Jan  7 16:06:45 2010
@@ -0,0 +1,24 @@
+<%@ taglib uri="http://tomcat.apache.org/testerFunctions" prefix="fn" %>
+<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
+<%--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+--%>
+<html>
+  <head><title>Bug 48112 test case</title></head>
+  <body>
+    <tags:echo echo="${fn:trim('{OK}')}"/>
+  </body>
+</html>
\ No newline at end of file

Propchange: tomcat/trunk/test/webapp/bug48112.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tomcat/trunk/test/webapp/bug48112.jsp
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision

Added: tomcat/trunk/test/webapp/el-misc.jsp
URL: http://svn.apache.org/viewvc/tomcat/trunk/test/webapp/el-misc.jsp?rev=896913&view=auto
==============================================================================
--- tomcat/trunk/test/webapp/el-misc.jsp (added)
+++ tomcat/trunk/test/webapp/el-misc.jsp Thu Jan  7 16:06:45 2010
@@ -0,0 +1,32 @@
+<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
+<%--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+--%>
+<html>
+  <head><title>Bug 45511 test case</title></head>
+  <body>
+    <p>00-\\\"\${'hello world'}</p>
+    <p>01-\\\"\\${'hello world'}</p>
+    <tags:echo echo="02-\\\"\${'hello world'}" />
+    <tags:echo echo="03-\\\"\\${'hello world'}" />
+    <tags:echo echo="${'2'}az-04" />
+    <tags:echo echo="05-a${'2'}z" />
+    <tags:echo echo="06-az${'2'}" />
+    <tags:echo echo="${\"2\"}az-07" />
+    <tags:echo echo="08-a${\"2\"}z" />
+    <tags:echo echo="09-az${\"2\"}" />
+  </body>
+</html>
\ No newline at end of file

Propchange: tomcat/trunk/test/webapp/el-misc.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tomcat/trunk/test/webapp/el-misc.jsp
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message