Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@apache.org Received: (qmail 92634 invoked from network); 21 Mar 2003 00:54:23 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 21 Mar 2003 00:54:22 -0000 Received: (qmail 89 invoked by uid 97); 21 Mar 2003 00:56:12 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-dev@nagoya.betaversion.org Received: (qmail 78 invoked from network); 21 Mar 2003 00:56:11 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 21 Mar 2003 00:56:11 -0000 Received: (qmail 91373 invoked by uid 500); 21 Mar 2003 00:54:08 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Developers List" Reply-To: "Tomcat Developers List" Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 91334 invoked by uid 500); 21 Mar 2003 00:54:08 -0000 Received: (qmail 91305 invoked from network); 21 Mar 2003 00:54:07 -0000 Received: from icarus.apache.org (208.185.179.13) by daedalus.apache.org with SMTP; 21 Mar 2003 00:54:07 -0000 Received: (qmail 22337 invoked by uid 1384); 21 Mar 2003 00:54:06 -0000 Date: 21 Mar 2003 00:54:06 -0000 Message-ID: <20030321005406.22336.qmail@icarus.apache.org> From: kinman@apache.org To: jakarta-servletapi-5-cvs@apache.org Subject: cvs commit: jakarta-servletapi-5/jsr152/examples/jsp2/el basic-arithmetic.jsp basic-arithmetic.txt basic-comparisons.jsp basic-comparisons.txt functions.jsp functions.txt implicit-objects.jsp implicit-objects.txt X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N kinman 2003/03/20 16:54:06 Modified: jsr152/examples/jsp2/el basic-arithmetic.jsp basic-arithmetic.txt basic-comparisons.jsp basic-comparisons.txt functions.jsp functions.txt implicit-objects.jsp implicit-objects.txt Log: - patch by Mark Roth Quick patch to improve JSP 2.0 EL examples: * Added example of conditional operator ${(1==2) ? 3 : 4} Commented out, since this is not yet implemented. * Changed quoting from old-style ${'${'} 1 + 2 } to new-style \${ 1 + 2 } Revision Changes Path 1.2 +17 -11 jakarta-servletapi-5/jsr152/examples/jsp2/el/basic-arithmetic.jsp Index: basic-arithmetic.jsp =================================================================== RCS file: /home/cvs/jakarta-servletapi-5/jsr152/examples/jsp2/el/basic-arithmetic.jsp,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- basic-arithmetic.jsp 7 Sep 2002 00:47:59 -0000 1.1 +++ basic-arithmetic.jsp 21 Mar 2003 00:54:06 -0000 1.2 @@ -18,49 +18,55 @@ Result - ${'${'}1} + \${1} ${1} - ${'${'}1 + 2} + \${1 + 2} ${1 + 2} - ${'${'}1.2 + 2.3} + \${1.2 + 2.3} ${1.2 + 2.3} - ${'${'}1.2E4 + 1.4} + \${1.2E4 + 1.4} ${1.2E4 + 1.4} - ${'${'}-4 - 2} + \${-4 - 2} ${-4 - 2} - ${'${'}21 * 2} + \${21 * 2} ${21 * 2} - ${'${'}3/4} + \${3/4} ${3/4} - ${'${'}3 div 4} + \${3 div 4} ${3 div 4} - ${'${'}3/0} + \${3/0} ${3/0} - ${'${'}10%4} + \${10%4} ${10%4} - ${'${'}10 mod 4} + \${10 mod 4} ${10 mod 4} +<%-- XXX - NOT YET IMPLEMENTED + + \${(1==2) ? 3 : 4} + ${(1==2) ? 3 : 4} + +--%> 1.2 +17 -11 jakarta-servletapi-5/jsr152/examples/jsp2/el/basic-arithmetic.txt Index: basic-arithmetic.txt =================================================================== RCS file: /home/cvs/jakarta-servletapi-5/jsr152/examples/jsp2/el/basic-arithmetic.txt,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- basic-arithmetic.txt 7 Sep 2002 00:47:59 -0000 1.1 +++ basic-arithmetic.txt 21 Mar 2003 00:54:06 -0000 1.2 @@ -18,49 +18,55 @@ Result - ${'${'}1} + \${1} ${1} - ${'${'}1 + 2} + \${1 + 2} ${1 + 2} - ${'${'}1.2 + 2.3} + \${1.2 + 2.3} ${1.2 + 2.3} - ${'${'}1.2E4 + 1.4} + \${1.2E4 + 1.4} ${1.2E4 + 1.4} - ${'${'}-4 - 2} + \${-4 - 2} ${-4 - 2} - ${'${'}21 * 2} + \${21 * 2} ${21 * 2} - ${'${'}3/4} + \${3/4} ${3/4} - ${'${'}3 div 4} + \${3 div 4} ${3 div 4} - ${'${'}3/0} + \${3/0} ${3/0} - ${'${'}10%4} + \${10%4} ${10%4} - ${'${'}10 mod 4} + \${10 mod 4} ${10 mod 4} +<%-- XXX - NOT YET IMPLEMENTED + + \${(1==2) ? 3 : 4} + ${(1==2) ? 3 : 4} + +--%> 1.2 +15 -15 jakarta-servletapi-5/jsr152/examples/jsp2/el/basic-comparisons.jsp Index: basic-comparisons.jsp =================================================================== RCS file: /home/cvs/jakarta-servletapi-5/jsr152/examples/jsp2/el/basic-comparisons.jsp,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- basic-comparisons.jsp 7 Sep 2002 00:47:59 -0000 1.1 +++ basic-comparisons.jsp 21 Mar 2003 00:54:06 -0000 1.2 @@ -24,51 +24,51 @@ Result - ${'${'}1 < 2} + \${1 < 2} ${1 < 2} - ${'${'}1 lt 2} + \${1 lt 2} ${1 lt 2} - ${'${'}1 > (4/2)} + \${1 > (4/2)} ${1 > (4/2)} - ${'${'}1 > (4/2)} + \${1 > (4/2)} ${1 > (4/2)} - ${'${'}4.0 >= 3} + \${4.0 >= 3} ${4.0 >= 3} - ${'${'}4.0 ge 3} + \${4.0 ge 3} ${4.0 ge 3} - ${'${'}4 <= 3} + \${4 <= 3} ${4 <= 3} - ${'${'}4 le 3} + \${4 le 3} ${4 le 3} - ${'${'}100.0 == 100} + \${100.0 == 100} ${100.0 == 100} - ${'${'}100.0 eq 100} + \${100.0 eq 100} ${100.0 eq 100} - ${'${'}(10*10) != 100} + \${(10*10) != 100} ${(10*10) != 100} - ${'${'}(10*10) ne 100} + \${(10*10) ne 100} ${(10*10) ne 100} @@ -82,15 +82,15 @@ Result - ${'${'}'a' < 'b'} + \${'a' < 'b'} ${'a' < 'b'} - ${'${'}'hip' > 'hit'} + \${'hip' > 'hit'} ${'hip' > 'hit'} - ${'${'}'4' > 3} + \${'4' > 3} ${'4' > 3} 1.2 +15 -15 jakarta-servletapi-5/jsr152/examples/jsp2/el/basic-comparisons.txt Index: basic-comparisons.txt =================================================================== RCS file: /home/cvs/jakarta-servletapi-5/jsr152/examples/jsp2/el/basic-comparisons.txt,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- basic-comparisons.txt 7 Sep 2002 00:47:59 -0000 1.1 +++ basic-comparisons.txt 21 Mar 2003 00:54:06 -0000 1.2 @@ -24,51 +24,51 @@ Result - ${'${'}1 < 2} + \${1 < 2} ${1 < 2} - ${'${'}1 lt 2} + \${1 lt 2} ${1 lt 2} - ${'${'}1 > (4/2)} + \${1 > (4/2)} ${1 > (4/2)} - ${'${'}1 > (4/2)} + \${1 > (4/2)} ${1 > (4/2)} - ${'${'}4.0 >= 3} + \${4.0 >= 3} ${4.0 >= 3} - ${'${'}4.0 ge 3} + \${4.0 ge 3} ${4.0 ge 3} - ${'${'}4 <= 3} + \${4 <= 3} ${4 <= 3} - ${'${'}4 le 3} + \${4 le 3} ${4 le 3} - ${'${'}100.0 == 100} + \${100.0 == 100} ${100.0 == 100} - ${'${'}100.0 eq 100} + \${100.0 eq 100} ${100.0 eq 100} - ${'${'}(10*10) != 100} + \${(10*10) != 100} ${(10*10) != 100} - ${'${'}(10*10) ne 100} + \${(10*10) ne 100} ${(10*10) ne 100} @@ -82,15 +82,15 @@ Result - ${'${'}'a' < 'b'} + \${'a' < 'b'} ${'a' < 'b'} - ${'${'}'hip' > 'hit'} + \${'hip' > 'hit'} ${'hip' > 'hit'} - ${'${'}'4' > 3} + \${'4' > 3} ${'4' > 3} 1.2 +4 -4 jakarta-servletapi-5/jsr152/examples/jsp2/el/functions.jsp Index: functions.jsp =================================================================== RCS file: /home/cvs/jakarta-servletapi-5/jsr152/examples/jsp2/el/functions.jsp,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- functions.jsp 7 Sep 2002 00:47:59 -0000 1.1 +++ functions.jsp 21 Mar 2003 00:54:06 -0000 1.2 @@ -26,19 +26,19 @@ Result - ${'${'}param["foo"]} + \${param["foo"]} ${param["foo"]}  - ${'${'}my:reverse(param["foo"])} + \${my:reverse(param["foo"])} ${my:reverse(param["foo"])}  - ${'${'}my:reverse(my:reverse(param["foo"]))} + \${my:reverse(my:reverse(param["foo"]))} ${my:reverse(my:reverse(param["foo"]))}  - ${'${'}my:countVowels(param["foo"])} + \${my:countVowels(param["foo"])} ${my:countVowels(param["foo"])}  1.2 +4 -4 jakarta-servletapi-5/jsr152/examples/jsp2/el/functions.txt Index: functions.txt =================================================================== RCS file: /home/cvs/jakarta-servletapi-5/jsr152/examples/jsp2/el/functions.txt,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- functions.txt 7 Sep 2002 00:47:59 -0000 1.1 +++ functions.txt 21 Mar 2003 00:54:06 -0000 1.2 @@ -26,19 +26,19 @@ Result - ${'${'}param["foo"]} + \${param["foo"]} ${param["foo"]}  - ${'${'}my:reverse(param["foo"])} + \${my:reverse(param["foo"])} ${my:reverse(param["foo"])}  - ${'${'}my:reverse(my:reverse(param["foo"]))} + \${my:reverse(my:reverse(param["foo"]))} ${my:reverse(my:reverse(param["foo"]))}  - ${'${'}my:countVowels(param["foo"])} + \${my:countVowels(param["foo"])} ${my:countVowels(param["foo"])}  1.2 +5 -5 jakarta-servletapi-5/jsr152/examples/jsp2/el/implicit-objects.jsp Index: implicit-objects.jsp =================================================================== RCS file: /home/cvs/jakarta-servletapi-5/jsr152/examples/jsp2/el/implicit-objects.jsp,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- implicit-objects.jsp 7 Sep 2002 00:47:59 -0000 1.1 +++ implicit-objects.jsp 21 Mar 2003 00:54:06 -0000 1.2 @@ -45,23 +45,23 @@ Result - ${'${'}param.foo} + \${param.foo} ${param.foo}  - ${'${'}param["foo"]} + \${param["foo"]} ${param["foo"]}  - ${'${'}header["host"]} + \${header["host"]} ${header["host"]} - ${'${'}header["accept"]} + \${header["accept"]} ${header["accept"]} - ${'${'}header["user-agent"]} + \${header["user-agent"]} ${header["user-agent"]} 1.2 +5 -5 jakarta-servletapi-5/jsr152/examples/jsp2/el/implicit-objects.txt Index: implicit-objects.txt =================================================================== RCS file: /home/cvs/jakarta-servletapi-5/jsr152/examples/jsp2/el/implicit-objects.txt,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- implicit-objects.txt 7 Sep 2002 00:47:59 -0000 1.1 +++ implicit-objects.txt 21 Mar 2003 00:54:06 -0000 1.2 @@ -45,23 +45,23 @@ Result - ${'${'}param.foo} + \${param.foo} ${param.foo}  - ${'${'}param["foo"]} + \${param["foo"]} ${param["foo"]}  - ${'${'}header["host"]} + \${header["host"]} ${header["host"]} - ${'${'}header["accept"]} + \${header["accept"]} ${header["accept"]} - ${'${'}header["user-agent"]} + \${header["user-agent"]} ${header["user-agent"]} --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org