Return-Path: Delivered-To: apmail-geronimo-scm-archive@www.apache.org Received: (qmail 4250 invoked from network); 6 Jun 2008 22:45:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Jun 2008 22:45:13 -0000 Received: (qmail 85115 invoked by uid 500); 6 Jun 2008 22:45:15 -0000 Delivered-To: apmail-geronimo-scm-archive@geronimo.apache.org Received: (qmail 85069 invoked by uid 500); 6 Jun 2008 22:45:15 -0000 Mailing-List: contact scm-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list scm@geronimo.apache.org Received: (qmail 85035 invoked by uid 99); 6 Jun 2008 22:45:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Jun 2008 15:45:14 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED,WHOIS_NETSOLPR X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Jun 2008 22:44:10 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id C52F22388A8E; Fri, 6 Jun 2008 15:44:08 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r664175 [8/13] - in /geronimo/samples/branches/2.1/samples: ./ app-per-port/ app-per-port/app-per-port-connector-war/ app-per-port/app-per-port-connector-war/src/main/webapp/WEB-INF/ app-per-port/app-per-port-ear/ app-per-port/app-per-port-... Date: Fri, 06 Jun 2008 22:43:53 -0000 To: scm@geronimo.apache.org From: djencks@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20080606224408.C52F22388A8E@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Modified: geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/colors/clr.html URL: http://svn.apache.org/viewvc/geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/colors/clr.html?rev=664175&r1=664174&r2=664175&view=diff ============================================================================== --- geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/colors/clr.html (original) +++ geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/colors/clr.html Fri Jun 6 15:43:44 2008 @@ -17,18 +17,18 @@ --> -Untitled Document - + Untitled Document +

Source Code for Color Example -

+

Property Sheet for ColorGameBean -

+ Modified: geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/colors/colors.html URL: http://svn.apache.org/viewvc/geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/colors/colors.html?rev=664175&r1=664174&r2=664175&view=diff ============================================================================== --- geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/colors/colors.html (original) +++ geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/colors/colors.html Fri Jun 6 15:43:44 2008 @@ -16,31 +16,32 @@ limitations under the License. --> - + -
-This web page is an example using JSP and BEANs. -

-Guess my favorite two colors - -

If you fail to guess both of them - you get yellow on red. - -

If you guess one of them right, either your foreground or - your background will change to the color that was guessed right. - -

Guess them both right and your browser foreground/background - will change to my two favorite colors to display this page. - -


-
-Color #1: -
-Color #2: -

- - -

+
+ This web page is an example using JSP and BEANs. +

+ Guess my favorite two colors + +

If you fail to guess both of them - you get yellow on red. + +

If you guess one of them right, either your foreground or + your background will change to the color that was guessed right. + +

Guess them both right and your browser foreground/background + will change to my two favorite colors to display this page. + +


+
+ Color #1: +
+ Color #2: + +

+ + +

Modified: geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/colors/colrs.jsp URL: http://svn.apache.org/viewvc/geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/colors/colrs.jsp?rev=664175&r1=664174&r2=664175&view=diff ============================================================================== --- geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/colors/colrs.jsp (original) +++ geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/colors/colrs.jsp Fri Jun 6 15:43:44 2008 @@ -16,54 +16,58 @@ limitations under the License. --> - - + + <% - cb.processRequest(request); + cb.processRequest(request); %> > > -

+

-<% if (cb.getHint()==true) { %> - -

Hint #1: Vampires prey at night! -

Hint #2: Nancy without the n. + <% if (cb.getHint()==true) { %> -<% } %> +

Hint #1: Vampires prey at night! -<% if (cb.getSuccess()==true) { %> +

+ +

Hint #2: Nancy without the n. + + <% } %> + + <% if (cb.getSuccess()==true) { %>

CONGRATULATIONS!! - <% if (cb.getHintTaken()==true) { %> - -

( although I know you cheated and peeked into the hints) + <% if (cb.getHintTaken()==true) { %> + +

( although I know you cheated and peeked into the hints) + + <% } %> - <% } %> + <% } %> -<% } %> +

Total attempts so far: <%= cb.getAttempts() %> -

Total attempts so far: <%= cb.getAttempts() %> -

+

-

+

-

+ -Color #1: + Color #1: -
+
-Color #2: + Color #2: -

+

- - + + -

+
Modified: geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/dates/date.html URL: http://svn.apache.org/viewvc/geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/dates/date.html?rev=664175&r1=664174&r2=664175&view=diff ============================================================================== --- geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/dates/date.html (original) +++ geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/dates/date.html Fri Jun 6 15:43:44 2008 @@ -17,15 +17,15 @@ --> -Untitled Document - + Untitled Document +

Source Code for Date Example -

+ Modified: geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/dates/date.jsp URL: http://svn.apache.org/viewvc/geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/dates/date.jsp?rev=664175&r1=664174&r2=664175&view=diff ============================================================================== --- geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/dates/date.jsp (original) +++ geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/dates/date.jsp Fri Jun 6 15:43:44 2008 @@ -16,25 +16,36 @@ limitations under the License. --> -<%@ page session="false"%> +<%@ page session="false" %> - + -
    -
  • Day of month: is -
  • Year: is -
  • Month: is -
  • Time: is -
  • Date: is -
  • Day: is -
  • Day Of Year: is -
  • Week Of Year: is -
  • era: is -
  • DST Offset: is -
  • Zone Offset: is -
+
    +
  • Day of month: is + +
  • Year: is + +
  • Month: is + +
  • Time: is + +
  • Date: is + +
  • Day: is + +
  • Day Of Year: is + +
  • Week Of Year: is + +
  • era: is + +
  • DST Offset: is + +
  • Zone Offset: is + +
Modified: geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/error/er.html URL: http://svn.apache.org/viewvc/geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/error/er.html?rev=664175&r1=664174&r2=664175&view=diff ============================================================================== --- geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/error/er.html (original) +++ geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/error/er.html Fri Jun 6 15:43:44 2008 @@ -17,15 +17,15 @@ --> -Untitled Document - + Untitled Document +

Source Code for Error Example -

+ Modified: geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/error/err.jsp URL: http://svn.apache.org/viewvc/geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/error/err.jsp?rev=664175&r1=664174&r2=664175&view=diff ============================================================================== --- geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/error/err.jsp (original) +++ geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/error/err.jsp Fri Jun 6 15:43:44 2008 @@ -17,28 +17,30 @@ --> - <%@ page errorPage="errorpge.jsp" %> - - <% - String name = null; - - if (request.getParameter("name") == null) { - %> - <%@ include file="/error/error.html" %> - <% - } else { - foo.setName(request.getParameter("name")); - if (foo.getName().equalsIgnoreCase("integra")) - name = "acura"; - if (name.equalsIgnoreCase("acura")) { - %> - -

Yes!!! Acura is my favorite car. - - <% - } - } - %> +<%@ page errorPage="errorpge.jsp" %> + +<% + String name = null; + + if (request.getParameter("name") == null) { +%> +<%@ include file="/error/error.html" %> +<% +} else { + foo.setName(request.getParameter("name")); + if (foo.getName().equalsIgnoreCase("integra")) + name = "acura"; + if (name.equalsIgnoreCase("acura")) { +%> + +

Yes!!! Acura is my favorite car. + + <% + + } + } + + %> Modified: geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/error/error.html URL: http://svn.apache.org/viewvc/geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/error/error.html?rev=664175&r1=664174&r2=664175&view=diff ============================================================================== --- geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/error/error.html (original) +++ geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/error/error.html Fri Jun 6 15:43:44 2008 @@ -20,17 +20,19 @@

This example uses errorpage directive


+

Select my favourite car.

+
- - -
+ + +
Modified: geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/error/errorpge.jsp URL: http://svn.apache.org/viewvc/geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/error/errorpge.jsp?rev=664175&r1=664174&r2=664175&view=diff ============================================================================== --- geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/error/errorpge.jsp (original) +++ geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/error/errorpge.jsp Fri Jun 6 15:43:44 2008 @@ -18,8 +18,8 @@ - <%@ page isErrorPage="true" %> -

The exception <%= exception.getMessage() %> tells me you - made a wrong choice. +<%@ page isErrorPage="true" %> +

The exception <%= exception.getMessage() %> tells me you + made a wrong choice. Modified: geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/forward/forward.jsp URL: http://svn.apache.org/viewvc/geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/forward/forward.jsp?rev=664175&r1=664174&r2=664175&view=diff ============================================================================== --- geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/forward/forward.jsp (original) +++ geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/forward/forward.jsp Fri Jun 6 15:43:44 2008 @@ -1,25 +1,25 @@ -<% - double freeMem = Runtime.getRuntime().freeMemory(); - double totlMem = Runtime.getRuntime().totalMemory(); - double percent = freeMem/totlMem; - if (percent < 0.5) { +<% + double freeMem = Runtime.getRuntime().freeMemory(); + double totlMem = Runtime.getRuntime().totalMemory(); + double percent = freeMem / totlMem; + if (percent < 0.5) { %> Modified: geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/forward/fwd.html URL: http://svn.apache.org/viewvc/geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/forward/fwd.html?rev=664175&r1=664174&r2=664175&view=diff ============================================================================== --- geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/forward/fwd.html (original) +++ geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/forward/fwd.html Fri Jun 6 15:43:44 2008 @@ -16,15 +16,15 @@ --> -Untitled Document - + Untitled Document +

Source Code for Forward Example -

+

Modified: geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/forward/one.jsp URL: http://svn.apache.org/viewvc/geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/forward/one.jsp?rev=664175&r1=664174&r2=664175&view=diff ============================================================================== --- geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/forward/one.jsp (original) +++ geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/forward/one.jsp Fri Jun 6 15:43:44 2008 @@ -1,22 +1,22 @@ -VM Memory usage < 50%. + VM Memory usage < 50%. Modified: geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/forward/two.html URL: http://svn.apache.org/viewvc/geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/forward/two.html?rev=664175&r1=664174&r2=664175&view=diff ============================================================================== --- geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/forward/two.html (original) +++ geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/forward/two.html Fri Jun 6 15:43:44 2008 @@ -17,5 +17,5 @@ -VM Memory usage > 50%. + VM Memory usage > 50%. Modified: geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/include/foo.jsp URL: http://svn.apache.org/viewvc/geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/include/foo.jsp?rev=664175&r1=664174&r2=664175&view=diff ============================================================================== --- geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/include/foo.jsp (original) +++ geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/include/foo.jsp Fri Jun 6 15:43:44 2008 @@ -1,21 +1,21 @@ -<%= System.currentTimeMillis() %> + <%= System.currentTimeMillis() %> Modified: geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/include/inc.html URL: http://svn.apache.org/viewvc/geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/include/inc.html?rev=664175&r1=664174&r2=664175&view=diff ============================================================================== --- geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/include/inc.html (original) +++ geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/include/inc.html Fri Jun 6 15:43:44 2008 @@ -16,15 +16,15 @@ limitations under the License. --> -Untitled Document - + Untitled Document +

Source Code for Include Example -

+

Modified: geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/include/include.jsp URL: http://svn.apache.org/viewvc/geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/include/include.jsp?rev=664175&r1=664174&r2=664175&view=diff ============================================================================== --- geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/include/include.jsp (original) +++ geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/include/include.jsp Fri Jun 6 15:43:44 2008 @@ -20,16 +20,17 @@ -<%@ page buffer="5kb" autoFlush="false" %> + <%@ page buffer="5kb" autoFlush="false" %> -

In place evaluation of another JSP which gives you the current time: +

In place evaluation of another JSP which gives you the current time: -<%@ include file="foo.jsp" %> + <%@ include file="foo.jsp" %> -

by including the output of another JSP: +

+ by including the output of another JSP: - + -:-) + :-) Modified: geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/index.html URL: http://svn.apache.org/viewvc/geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/index.html?rev=664175&r1=664174&r2=664175&view=diff ============================================================================== --- geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/index.html (original) +++ geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/index.html Fri Jun 6 15:43:44 2008 @@ -17,356 +17,359 @@ limitations under the License. --> - - - - JSP Examples - + + + + JSP Examples + JSP -Samples + Samples +

This is a collection of samples demonstrating the usage of different -parts of the Java Server Pages (JSP) specification. Both JSP 2.0 and -JSP 1.2 examples are presented below. + parts of the Java Server Pages (JSP) specification. Both JSP 2.0 and + JSP 1.2 examples are presented below. +

These examples will only work when these pages are being served by a -servlet engine; of course, we recommend -Tomcat. -They will not work if you are viewing these pages via a -"file://..." URL. + servlet engine; of course, we recommend + Tomcat. + They will not work if you are viewing these pages via a + "file://..." URL. +

To navigate your way through the examples, the following icons will -help: -
  - - - + help: +
  +
+ + - - + + - - + + - - + + - + + --> - - - + + + - - + +
Execute the example
Execute the example
Look at the source code for the example
Look at the source code for the example
Read more about this feature
Return to this screen
Return to this screen

Tip: For session scoped beans to work, the cookies must be enabled. -This can be done using browser options. -
  -
-JSP 2.0 Examples
+ This can be done using browser options. +
  +
+ JSP 2.0 Examples
- +
- + - - + + - + - - + + - + - - + + - + - - + + - + - + - - + + - + - - + + - + - - + + - + - + - - + + - + - - + + - + - - + + - + - + - - + + - + - - + + - + - + - - + + - + - - + + - + - - + + - + - - + + - +
Expression LanguageExpression Language
Basic ArithmeticExecuteBasic ArithmeticExecuteSourceSource
Basic ComparisonsExecuteBasic ComparisonsExecuteSourceSource
Implicit ObjectsExecuteImplicit ObjectsExecuteSourceSource
FunctionsExecuteFunctionsExecuteSourceSource

SimpleTag Handlers and JSP Fragments

SimpleTag Handlers and JSP Fragments
Hello World TagExecuteHello World TagExecuteSourceSource
Repeat TagExecuteRepeat TagExecuteSourceSource
Book ExampleExecuteBook ExampleExecuteSourceSource

Tag Files

Tag Files
Hello World Tag FileExecuteHello World Tag FileExecuteSourceSource
Panel Tag FileExecutePanel Tag FileExecuteSourceSource
Display Products ExampleExecuteDisplay Products ExampleExecuteSourceSource

New JSP XML Syntax (.jspx)

New JSP XML Syntax (.jspx)
XHTML Basic ExampleExecuteXHTML Basic ExampleExecuteSourceSource
SVG (Scalable Vector Graphics)ExecuteSVG (Scalable Vector Graphics)ExecuteSourceSource

Other JSP 2.0 Features

Other JSP 2.0 Features
<jsp:attribute> and <jsp:body>Execute<jsp:attribute> and <jsp:body>ExecuteSourceSource
Shuffle ExampleExecuteShuffle ExampleExecuteSourceSource
Attributes With Dynamic NamesExecuteAttributes With Dynamic NamesExecuteSourceSource
JSP ConfigurationExecuteJSP ConfigurationExecuteSourceSource

JSP 1.2 Examples
- +
- + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - - + + - +
Numberguess Numberguess ExecuteExecuteSourceSource
Date Date ExecuteExecuteSourceSource
SnoopSnoopExecuteExecuteSourceSource
ErrorPage ErrorPage ExecuteExecuteSourceSource
Carts Carts ExecuteExecuteSourceSource
Checkbox Checkbox ExecuteExecuteSourceSource
Color Color ExecuteExecuteSourceSource
Calendar Calendar ExecuteExecuteSourceSource
Include Include ExecuteExecuteSourceSource
Forward Forward ExecuteExecuteSourceSource
Plugin Plugin ExecuteExecuteSourceSource
JSP-Servlet-JSP JSP-Servlet-JSP ExecuteExecuteSourceSource
Custom tag exampleCustom tag exampleExecuteExecuteSourceSource
XML syntax exampleExecuteXML syntax exampleExecuteSourceSource

Tag Plugins
- - - - - - - +
If  - - Execute - - - Source -
- - - - - - - - - - - + + + + + + + + + + + + + + + + +
ForEach  - - Execute - - - Source -
Choose  - - Execute - - - Source -
If  + + Execute + + + Source +
ForEach  + + Execute + + + Source +
Choose  + + Execute + + + Source +
Modified: geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/el/basic-arithmetic.html URL: http://svn.apache.org/viewvc/geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/el/basic-arithmetic.html?rev=664175&r1=664174&r2=664175&view=diff ============================================================================== --- geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/el/basic-arithmetic.html (original) +++ geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/el/basic-arithmetic.html Fri Jun 6 15:43:44 2008 @@ -16,15 +16,16 @@ limitations under the License. --> -View Source Code - + View Source Code + -

+

Source Code for Basic Arithmetic Example -

+
Modified: geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/el/basic-arithmetic.jsp URL: http://svn.apache.org/viewvc/geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/el/basic-arithmetic.jsp?rev=664175&r1=664174&r2=664175&view=diff ============================================================================== --- geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/el/basic-arithmetic.jsp (original) +++ geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/el/basic-arithmetic.jsp Fri Jun 6 15:43:44 2008 @@ -1,88 +1,88 @@ - + JSP 2.0 Expression Language - Basic Arithmetic - - -

JSP 2.0 Expression Language - Basic Arithmetic

-
- This example illustrates basic Expression Language arithmetic. - Addition (+), subtraction (-), multiplication (*), division (/ or div), - and modulus (% or mod) are all supported. Error conditions, like - division by zero, are handled gracefully. -
-
- + + +

JSP 2.0 Expression Language - Basic Arithmetic

+
+This example illustrates basic Expression Language arithmetic. +Addition (+), subtraction (-), multiplication (*), division (/ or div), +and modulus (% or mod) are all supported. Error conditions, like +division by zero, are handled gracefully. +
+
+ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
EL ExpressionResult
\${1}${1}
\${1 + 2}${1 + 2}
\${1.2 + 2.3}${1.2 + 2.3}
\${1.2E4 + 1.4}${1.2E4 + 1.4}
\${-4 - 2}${-4 - 2}
\${21 * 2}${21 * 2}
\${3/4}${3/4}
\${3 div 4}${3 div 4}
\${3/0}${3/0}
\${10%4}${10%4}
\${10 mod 4}${10 mod 4}
\${(1==2) ? 3 : 4}${(1==2) ? 3 : 4}
-
-
- + + EL Expression + Result + + + \${1} + ${1} + + + \${1 + 2} + ${1 + 2} + + + \${1.2 + 2.3} + ${1.2 + 2.3} + + + \${1.2E4 + 1.4} + ${1.2E4 + 1.4} + + + \${-4 - 2} + ${-4 - 2} + + + \${21 * 2} + ${21 * 2} + + + \${3/4} + ${3/4} + + + \${3 div 4} + ${3 div 4} + + + \${3/0} + ${3/0} + + + \${10%4} + ${10%4} + + + \${10 mod 4} + ${10 mod 4} + + + \${(1==2) ? 3 : 4} + ${(1==2) ? 3 : 4} + + +
+
+ Modified: geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/el/basic-comparisons.html URL: http://svn.apache.org/viewvc/geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/el/basic-comparisons.html?rev=664175&r1=664174&r2=664175&view=diff ============================================================================== --- geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/el/basic-comparisons.html (original) +++ geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/el/basic-comparisons.html Fri Jun 6 15:43:44 2008 @@ -16,15 +16,16 @@ limitations under the License. --> -View Source Code - + View Source Code + -

+

Source Code for Basic Comparisons Example -

+ Modified: geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/el/basic-comparisons.jsp URL: http://svn.apache.org/viewvc/geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/el/basic-comparisons.jsp?rev=664175&r1=664174&r2=664175&view=diff ============================================================================== --- geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/el/basic-comparisons.jsp (original) +++ geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/el/basic-comparisons.jsp Fri Jun 6 15:43:44 2008 @@ -1,116 +1,116 @@ - + JSP 2.0 Expression Language - Basic Comparisons - - -

JSP 2.0 Expression Language - Basic Comparisons

-
- This example illustrates basic Expression Language comparisons. - The following comparison operators are supported: -
    -
  • Less-than (< or lt)
  • -
  • Greater-than (> or gt)
  • -
  • Less-than-or-equal (<= or le)
  • -
  • Greater-than-or-equal (>= or ge)
  • -
  • Equal (== or eq)
  • -
  • Not Equal (!= or ne)
  • -
-
- Numeric - + + +

JSP 2.0 Expression Language - Basic Comparisons

+
+This example illustrates basic Expression Language comparisons. +The following comparison operators are supported: +
    +
  • Less-than (< or lt)
  • +
  • Greater-than (> or gt)
  • +
  • Less-than-or-equal (<= or le)
  • +
  • Greater-than-or-equal (>= or ge)
  • +
  • Equal (== or eq)
  • +
  • Not Equal (!= or ne)
  • +
+
+ Numeric + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
EL ExpressionResult
\${1 < 2}${1 < 2}
\${1 lt 2}${1 lt 2}
\${1 > (4/2)}${1 > (4/2)}
\${1 > (4/2)}${1 > (4/2)}
\${4.0 >= 3}${4.0 >= 3}
\${4.0 ge 3}${4.0 ge 3}
\${4 <= 3}${4 <= 3}
\${4 le 3}${4 le 3}
\${100.0 == 100}${100.0 == 100}
\${100.0 eq 100}${100.0 eq 100}
\${(10*10) != 100}${(10*10) != 100}
\${(10*10) ne 100}${(10*10) ne 100}
-
-
- Alphabetic - + + EL Expression + Result + + + \${1 < 2} + ${1 < 2} + + + \${1 lt 2} + ${1 lt 2} + + + \${1 > (4/2)} + ${1 > (4/2)} + + + \${1 > (4/2)} + ${1 > (4/2)} + + + \${4.0 >= 3} + ${4.0 >= 3} + + + \${4.0 ge 3} + ${4.0 ge 3} + + + \${4 <= 3} + ${4 <= 3} + + + \${4 le 3} + ${4 le 3} + + + \${100.0 == 100} + ${100.0 == 100} + + + \${100.0 eq 100} + ${100.0 eq 100} + + + \${(10*10) != 100} + ${(10*10) != 100} + + + \${(10*10) ne 100} + ${(10*10) ne 100} + + + +
+ Alphabetic + - - - - - - - - - - - - - - - - -
EL ExpressionResult
\${'a' < 'b'}${'a' < 'b'}
\${'hip' > 'hit'}${'hip' > 'hit'}
\${'4' > 3}${'4' > 3}
-
-
- + + EL Expression + Result + + + \${'a' < 'b'} + ${'a' < 'b'} + + + \${'hip' > 'hit'} + ${'hip' > 'hit'} + + + \${'4' > 3} + ${'4' > 3} + + +
+
+ Modified: geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/el/functions.html URL: http://svn.apache.org/viewvc/geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/el/functions.html?rev=664175&r1=664174&r2=664175&view=diff ============================================================================== --- geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/el/functions.html (original) +++ geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/el/functions.html Fri Jun 6 15:43:44 2008 @@ -16,17 +16,19 @@ limitations under the License. --> -View Source Code - + View Source Code + -

+

+

Source Code for functions.jsp -

+ +

Source Code for Functions.java -

+ Modified: geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/el/functions.jsp URL: http://svn.apache.org/viewvc/geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/el/functions.jsp?rev=664175&r1=664174&r2=664175&view=diff ============================================================================== --- geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/el/functions.jsp (original) +++ geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/el/functions.jsp Fri Jun 6 15:43:44 2008 @@ -1,66 +1,67 @@ <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> -<%@ taglib prefix="my" uri="http://jakarta.apache.org/tomcat/jsp2-example-taglib"%> +<%@ taglib prefix="my" uri="http://jakarta.apache.org/tomcat/jsp2-example-taglib" %> - + JSP 2.0 Expression Language - Functions - - -

JSP 2.0 Expression Language - Functions

-
- An upgrade from the JSTL expression language, the JSP 2.0 EL also - allows for simple function invocation. Functions are defined - by tag libraries and are implemented by a Java programmer as - static methods. - -
- Change Parameter -
- foo = - -
-
- + + +

JSP 2.0 Expression Language - Functions

+
+An upgrade from the JSTL expression language, the JSP 2.0 EL also +allows for simple function invocation. Functions are defined +by tag libraries and are implemented by a Java programmer as +static methods. + +
+ Change Parameter + +
+ foo = + +
+
+ - - - - - - - - - - - - - - - - - - - - -
EL ExpressionResult
\${param["foo"]}${fn:escapeXml(param["foo"])} 
\${my:reverse(param["foo"])}${my:reverse(fn:escapeXml(param["foo"]))} 
\${my:reverse(my:reverse(param["foo"]))}${my:reverse(my:reverse(fn:escapeXml(param["foo"])))} 
\${my:countVowels(param["foo"])}${my:countVowels(fn:escapeXml(param["foo"]))} 
-
-
- + + EL Expression + Result + + + \${param["foo"]} + ${fn:escapeXml(param["foo"])}  + + + \${my:reverse(param["foo"])} + ${my:reverse(fn:escapeXml(param["foo"]))}  + + + \${my:reverse(my:reverse(param["foo"]))} + ${my:reverse(my:reverse(fn:escapeXml(param["foo"])))}  + + + \${my:countVowels(param["foo"])} + ${my:countVowels(fn:escapeXml(param["foo"]))}  + + +
+
+ Modified: geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/el/implicit-objects.html URL: http://svn.apache.org/viewvc/geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/el/implicit-objects.html?rev=664175&r1=664174&r2=664175&view=diff ============================================================================== --- geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/el/implicit-objects.html (original) +++ geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/el/implicit-objects.html Fri Jun 6 15:43:44 2008 @@ -16,16 +16,16 @@ --> -View Source Code - + View Source Code +

-

+

Source Code for Implicit Objects Example -

+