geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lin...@apache.org
Subject svn commit: r675761 [1/3] - in /geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp: ./ cal/ checkbox/ colors/ dates/ error/ forward/ include/ jsp2/el/ jsp2/jspattribute/ jsp2/jspx/ jsp2/misc/ jsp2/simpletag/ jsp2/tagfiles/ jsp...
Date Thu, 10 Jul 2008 21:23:16 GMT
Author: linsun
Date: Thu Jul 10 14:23:15 2008
New Revision: 675761

URL: http://svn.apache.org/viewvc?rev=675761&view=rev
Log:
Enable view source links to work in the jsp example - add the missing source html files. GERONIMO-4194

Added:
    geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/cal/Entries.java.html   (with props)
    geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/cal/Entry.java.html   (with props)
    geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/cal/JspCalendar.java.html   (with props)
    geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/cal/TableBean.java.html   (with props)
    geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/cal/cal1.jsp.html   (with props)
    geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/cal/cal2.jsp.html   (with props)
    geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/checkbox/checkresult.jsp.html   (with props)
    geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/colors/colrs.jsp.html   (with props)
    geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/dates/date.jsp.html   (with props)
    geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/error/err.jsp.html   (with props)
    geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/error/errorpge.jsp.html   (with props)
    geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/forward/forward.jsp.html   (with props)
    geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/forward/one.jsp.html   (with props)
    geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/include/foo.jsp.html   (with props)
    geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/include/include.jsp.html   (with props)
    geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/el/Functions.java.html   (with props)
    geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/el/basic-arithmetic.jsp.html   (with props)
    geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/el/basic-comparisons.jsp.html   (with props)
    geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/el/functions.jsp.html   (with props)
    geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/el/implicit-objects.jsp.html   (with props)
    geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/jspattribute/FooBean.java.html   (with props)
    geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/jspattribute/HelloWorldSimpleTag.java.html   (with props)
    geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/jspattribute/ShuffleSimpleTag.java.html   (with props)
    geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/jspattribute/TileSimpleTag.java.html   (with props)
    geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/jspattribute/jspattribute.jsp.html   (with props)
    geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/jspattribute/shuffle.jsp.html   (with props)
    geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/jspx/basic.jspx.html   (with props)
    geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/jspx/textRotate.jspx.html   (with props)
    geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/misc/EchoAttributesTag.java.html   (with props)
    geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/misc/coda.jspf.html   (with props)
    geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/misc/config.jsp.html   (with props)
    geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/misc/dynamicattrs.jsp.html   (with props)
    geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/misc/prelude.jspf.html   (with props)
    geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/simpletag/BookBean.java.html   (with props)
    geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/simpletag/FindBookSimpleTag.java.html   (with props)
    geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/simpletag/Functions.java.html   (with props)
    geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/simpletag/HelloWorldSimpleTag.java.html   (with props)
    geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/simpletag/RepeatSimpleTag.java.html   (with props)
    geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/simpletag/book.jsp.html   (with props)
    geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/simpletag/hello.jsp.html   (with props)
    geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/simpletag/repeat.jsp.html   (with props)
    geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/tagfiles/displayProducts.tag.html   (with props)
    geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/tagfiles/hello.jsp.html   (with props)
    geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/tagfiles/helloWorld.tag.html   (with props)
    geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/tagfiles/panel.jsp.html   (with props)
    geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/tagfiles/panel.tag.html   (with props)
    geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/tagfiles/products.jsp.html   (with props)
    geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/tagfiles/xhtmlbasic.tag.html   (with props)
    geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsptoserv/hello.jsp.html   (with props)
    geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsptoserv/jsptoservlet.jsp.html   (with props)
    geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsptoserv/servletToJsp.java.html   (with props)
    geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/num/numguess.jsp.html   (with props)
    geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/plugin/plugin.jsp.html   (with props)
    geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/security/protected/error.jsp.html   (with props)
    geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/security/protected/index.jsp.html   (with props)
    geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/security/protected/login.jsp.html   (with props)
    geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/sessions/carts.jsp.html   (with props)
    geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/simpletag/foo.jsp.html   (with props)
    geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/snp/snoop.jsp.html   (with props)
    geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/source.jsp.html   (with props)
    geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/tagplugin/choose.jsp.html   (with props)
    geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/tagplugin/foreach.jsp.html   (with props)
    geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/tagplugin/if.jsp.html   (with props)
    geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/xml/xml.jsp.html   (with props)

Added: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/cal/Entries.java.html
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/cal/Entries.java.html?rev=675761&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/cal/Entries.java.html (added)
+++ geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/cal/Entries.java.html Thu Jul 10 14:23:15 2008
@@ -0,0 +1,74 @@
+<html><body><pre>
+/*
+* 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 cal;
+
+import java.util.Hashtable;
+import javax.servlet.http.*;
+
+public class Entries {
+
+  private Hashtable entries;
+  private static final String[] time = {"8am", "9am", "10am", "11am", "12pm", 
+					"1pm", "2pm", "3pm", "4pm", "5pm", "6pm",
+					"7pm", "8pm" };
+  public static final int rows = 12;
+
+  public Entries () {   
+   entries = new Hashtable (rows);
+   for (int i=0; i &lt; rows; i++) {
+     entries.put (time[i], new Entry(time[i]));
+   }
+  }
+
+  public int getRows () {
+    return rows;
+  }
+
+  public Entry getEntry (int index) {
+    return (Entry)this.entries.get(time[index]);
+  }
+
+  public int getIndex (String tm) {
+    for (int i=0; i&lt;rows; i++)
+      if(tm.equals(time[i])) return i;
+    return -1;
+  }
+
+  public void processRequest (HttpServletRequest request, String tm) {
+    int index = getIndex (tm);
+    if (index >= 0) {
+      String descr = request.getParameter ("description");
+      ((Entry)entries.get(time[index])).setDescription (descr);
+    }
+  }
+
+}
+
+
+
+
+
+
+
+
+
+
+
+
+
+</pre></body></html>

Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/cal/Entries.java.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/cal/Entries.java.html
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/cal/Entries.java.html
------------------------------------------------------------------------------
    svn:mime-type = text/html

Added: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/cal/Entry.java.html
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/cal/Entry.java.html?rev=675761&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/cal/Entry.java.html (added)
+++ geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/cal/Entry.java.html Thu Jul 10 14:23:15 2008
@@ -0,0 +1,57 @@
+<html><body><pre>
+/*
+* 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 cal;
+
+public class Entry {
+
+  String hour;
+  String description;
+  String color;
+
+  public Entry (String hour) {
+    this.hour = hour;
+    this.description = "";
+
+  }
+
+  public String getHour () {
+    return this.hour;
+  }
+
+  public String getColor () {
+    if (description.equals("")) return "lightblue";
+    else return "red";
+  }
+
+  public String getDescription () {
+    if (description.equals("")) return "None";
+    else return this.description;
+  }
+
+  public void setDescription (String descr) {
+    description = descr;
+  }
+ 
+}
+
+
+
+
+
+</pre></body></html>

Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/cal/Entry.java.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/cal/Entry.java.html
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/cal/Entry.java.html
------------------------------------------------------------------------------
    svn:mime-type = text/html

Added: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/cal/JspCalendar.java.html
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/cal/JspCalendar.java.html?rev=675761&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/cal/JspCalendar.java.html (added)
+++ geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/cal/JspCalendar.java.html Thu Jul 10 14:23:15 2008
@@ -0,0 +1,156 @@
+<html><body><pre>
+/*
+* 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 cal;
+
+import java.util.*;
+
+public class JspCalendar {
+    Calendar  calendar = null;
+    Date currentDate;
+
+    public JspCalendar() {
+	calendar = Calendar.getInstance();
+	Date trialTime = new Date();
+	calendar.setTime(trialTime);
+    }
+
+
+    public int getYear() {
+	return calendar.get(Calendar.YEAR);
+    }
+    
+    public String getMonth() {
+	int m = getMonthInt();
+	String[] months = new String [] { "January", "February", "March",
+					"April", "May", "June",
+					"July", "August", "September",
+					"October", "November", "December" };
+	if (m > 12)
+	    return "Unknown to Man";
+	
+	return months[m - 1];
+
+    }
+
+    public String getDay() {
+	int x = getDayOfWeek();
+	String[] days = new String[] {"Sunday", "Monday", "Tuesday", "Wednesday", 
+				      "Thursday", "Friday", "Saturday"};
+
+	if (x > 7)
+	    return "Unknown to Man";
+
+	return days[x - 1];
+
+    }
+    
+    public int getMonthInt() {
+	return 1 + calendar.get(Calendar.MONTH);
+    }
+
+    public String getDate() {
+	return getMonthInt() + "/" + getDayOfMonth() + "/" +  getYear();	
+    }
+
+    public String getCurrentDate() {
+        Date dt = new Date ();
+	calendar.setTime (dt);
+	return getMonthInt() + "/" + getDayOfMonth() + "/" +  getYear();
+
+    }
+
+    public String getNextDate() {
+        calendar.set (Calendar.DAY_OF_MONTH, getDayOfMonth() + 1);
+	return getDate ();
+    }
+
+    public String getPrevDate() {
+        calendar.set (Calendar.DAY_OF_MONTH, getDayOfMonth() - 1);
+	return getDate ();
+    }
+
+    public String getTime() {
+	return getHour() + ":" + getMinute() + ":" + getSecond();
+    }
+
+    public int getDayOfMonth() {
+	return calendar.get(Calendar.DAY_OF_MONTH);
+    }
+
+    public int getDayOfYear() {
+	return calendar.get(Calendar.DAY_OF_YEAR);
+    }
+
+    public int getWeekOfYear() {
+	return calendar.get(Calendar.WEEK_OF_YEAR);
+    }
+
+    public int getWeekOfMonth() {
+	return calendar.get(Calendar.WEEK_OF_MONTH);
+    }
+
+    public int getDayOfWeek() {
+	return calendar.get(Calendar.DAY_OF_WEEK);
+    }
+     
+    public int getHour() {
+	return calendar.get(Calendar.HOUR_OF_DAY);
+    }
+    
+    public int getMinute() {
+	return calendar.get(Calendar.MINUTE);
+    }
+
+
+    public int getSecond() {
+	return calendar.get(Calendar.SECOND);
+    }
+
+  
+    public int getEra() {
+	return calendar.get(Calendar.ERA);
+    }
+
+    public String getUSTimeZone() {
+	String[] zones = new String[] {"Hawaii", "Alaskan", "Pacific",
+				       "Mountain", "Central", "Eastern"};
+	
+	return zones[10 + getZoneOffset()];
+    }
+
+    public int getZoneOffset() {
+	return calendar.get(Calendar.ZONE_OFFSET)/(60*60*1000);
+    }
+
+
+    public int getDSTOffset() {
+	return calendar.get(Calendar.DST_OFFSET)/(60*60*1000);
+    }
+
+    
+    public int getAMPM() {
+	return calendar.get(Calendar.AM_PM);
+    }
+}
+
+
+
+
+
+</pre></body></html>

Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/cal/JspCalendar.java.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/cal/JspCalendar.java.html
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/cal/JspCalendar.java.html
------------------------------------------------------------------------------
    svn:mime-type = text/html

Added: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/cal/TableBean.java.html
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/cal/TableBean.java.html?rev=675761&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/cal/TableBean.java.html (added)
+++ geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/cal/TableBean.java.html Thu Jul 10 14:23:15 2008
@@ -0,0 +1,102 @@
+<html><body><pre>
+/*
+* 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 cal;
+
+import javax.servlet.http.*;
+import java.util.Hashtable;
+
+public class TableBean {
+
+  Hashtable table;
+  JspCalendar JspCal;
+  Entries entries;
+  String date;
+  String name = null;
+  String email = null;
+  boolean processError = false;
+
+  public TableBean () {
+    this.table = new Hashtable (10);
+    this.JspCal = new JspCalendar ();
+    this.date = JspCal.getCurrentDate ();
+  }
+
+  public void setName (String nm) {
+    this.name = nm;
+  }
+
+  public String getName () {
+    return this.name;
+  }
+  
+  public void setEmail (String mail) {
+    this.email = mail;
+  }
+
+  public String getEmail () {
+    return this.email;
+  }
+
+  public String getDate () {
+    return this.date;
+  }
+
+  public Entries getEntries () {
+    return this.entries;
+  }
+
+  public void processRequest (HttpServletRequest request) {
+
+    // Get the name and e-mail.
+    this.processError = false;
+    if (name == null || name.equals("")) setName(request.getParameter ("name"));  
+    if (email == null || email.equals("")) setEmail(request.getParameter ("email"));
+    if (name == null || email == null ||
+		name.equals("") || email.equals("")) {
+      this.processError = true;
+      return;
+    }
+
+    // Get the date.
+    String dateR = request.getParameter ("date");
+    if (dateR == null) date = JspCal.getCurrentDate ();
+    else if (dateR.equalsIgnoreCase("next")) date = JspCal.getNextDate ();
+    else if (dateR.equalsIgnoreCase("prev")) date = JspCal.getPrevDate ();
+
+    entries = (Entries) table.get (date);
+    if (entries == null) {
+      entries = new Entries ();
+      table.put (date, entries);
+    }
+
+    // If time is provided add the event.
+	String time = request.getParameter("time");
+    if (time != null) entries.processRequest (request, time);
+  }
+
+  public boolean getProcessError () {
+    return this.processError;
+  }
+}
+
+
+
+
+
+
+</pre></body></html>

Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/cal/TableBean.java.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/cal/TableBean.java.html
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/cal/TableBean.java.html
------------------------------------------------------------------------------
    svn:mime-type = text/html

Added: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/cal/cal1.jsp.html
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/cal/cal1.jsp.html?rev=675761&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/cal/cal1.jsp.html (added)
+++ geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/cal/cal1.jsp.html Thu Jul 10 14:23:15 2008
@@ -0,0 +1,99 @@
+<html><body><pre>
+&lt;HTML>
+&lt;!--
+ 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.
+-->
+&lt;HEAD>&lt;TITLE>
+    Calendar: A JSP APPLICATION
+&lt;/TITLE>&lt;/HEAD>
+
+
+&lt;BODY BGCOLOR="white">
+
+&lt;%@ page language="java" %>
+&lt;jsp:useBean id="table" scope="session" class="cal.TableBean"/>
+
+&lt;%
+    table.processRequest(request);
+    if (table.getProcessError() == false) {
+%>
+
+&lt;!-- html table goes here -->
+&lt;CENTER>
+    &lt;TABLE WIDTH=60% BGCOLOR=yellow CELLPADDING=15>
+        &lt;TR>
+            &lt;TD ALIGN=CENTER>&lt;A HREF=cal1.jsp?date=prev> prev &lt;/A>
+            &lt;TD ALIGN=CENTER> Calendar:&lt;%= table.getDate() %>
+            &lt;/TD>
+            &lt;TD ALIGN=CENTER>&lt;A HREF=cal1.jsp?date=next> next &lt;/A>
+        &lt;/TR>
+    &lt;/TABLE>
+
+    &lt;!-- the main table -->
+    &lt;TABLE WIDTH=60% BGCOLOR=lightblue BORDER=1 CELLPADDING=10>
+        &lt;TR>
+            &lt;TH> Time&lt;/TH>
+            &lt;TH> Appointment&lt;/TH>
+        &lt;/TR>
+        &lt;FORM METHOD=POST ACTION=cal1.jsp>
+            &lt;%
+                for (int i = 0; i &lt; table.getEntries().getRows(); i++) {
+                    cal.Entry entr = table.getEntries().getEntry(i);
+            %>
+            &lt;TR>
+                &lt;TD>
+                    &lt;A HREF=cal2.jsp?time=&lt;%= entr.getHour() %>>
+                        &lt;%= entr.getHour() %>
+                    &lt;/A>
+                &lt;/TD>
+                &lt;TD BGCOLOR=&lt;%= entr.getColor() %>>
+                    &lt;% out.print(util.HTMLFilter.filter(entr.getDescription())); %>
+                &lt;/TD>
+            &lt;/TR>
+            &lt;%
+                }
+            %>
+        &lt;/FORM>
+    &lt;/TABLE>
+    &lt;BR>
+
+    &lt;!-- footer -->
+    &lt;TABLE WIDTH=60% BGCOLOR=yellow CELLPADDING=15>
+        &lt;TR>
+            &lt;TD ALIGN=CENTER>&lt;% out.print(util.HTMLFilter.filter(table.getName())); %> :
+                &lt;% out.print(util.HTMLFilter.filter(table.getEmail())); %>&lt;/TD>
+        &lt;/TR>
+    &lt;/TABLE>
+&lt;/CENTER>
+
+&lt;%
+} else {
+%>
+&lt;font size=5>
+    You must enter your name and email address correctly.
+&lt;/font>
+&lt;%
+    }
+%>
+
+
+&lt;/BODY>
+&lt;/HTML>
+
+
+
+
+</pre></body></html>

Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/cal/cal1.jsp.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/cal/cal1.jsp.html
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/cal/cal1.jsp.html
------------------------------------------------------------------------------
    svn:mime-type = text/html

Added: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/cal/cal2.jsp.html
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/cal/cal2.jsp.html?rev=675761&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/cal/cal2.jsp.html (added)
+++ geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/cal/cal2.jsp.html Thu Jul 10 14:23:15 2008
@@ -0,0 +1,53 @@
+<html><body><pre>
+&lt;HTML>
+&lt;!--
+ 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.
+-->
+
+&lt;HEAD>&lt;TITLE>
+    Calendar: A JSP APPLICATION
+&lt;/TITLE>&lt;/HEAD>
+
+
+&lt;BODY BGCOLOR="white">
+&lt;jsp:useBean id="table" scope="session" class="cal.TableBean"/>
+
+&lt;%
+    String time = request.getParameter("time");
+%>
+
+&lt;FONT SIZE=5> Please add the following event:
+    &lt;BR>
+
+    &lt;h3> Date &lt;%= table.getDate() %>
+        &lt;BR> Time &lt;%= util.HTMLFilter.filter(time) %>
+    &lt;/h3>
+&lt;/FONT>
+
+&lt;FORM METHOD=POST ACTION=cal1.jsp>
+    &lt;BR>
+    &lt;BR> &lt;INPUT NAME="date" TYPE=HIDDEN VALUE="current">
+    &lt;BR> &lt;INPUT NAME="time" TYPE=HIDDEN VALUE=&lt;%= util.HTMLFilter.filter(time) %>
+        &lt;BR>
+
+    &lt;h2> Description of the event &lt;INPUT NAME="description" TYPE=TEXT SIZE=20>&lt;/h2>
+    &lt;BR> &lt;INPUT TYPE=SUBMIT VALUE="submit">
+&lt;/FORM>
+
+&lt;/BODY>
+&lt;/HTML>
+
+</pre></body></html>

Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/cal/cal2.jsp.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/cal/cal2.jsp.html
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/cal/cal2.jsp.html
------------------------------------------------------------------------------
    svn:mime-type = text/html

Added: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/checkbox/checkresult.jsp.html
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/checkbox/checkresult.jsp.html?rev=675761&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/checkbox/checkresult.jsp.html (added)
+++ geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/checkbox/checkresult.jsp.html Thu Jul 10 14:23:15 2008
@@ -0,0 +1,70 @@
+<html><body><pre>
+&lt;html>
+&lt;!--
+ 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.
+-->
+
+&lt;body bgcolor="white">
+&lt;font size=5 color="red">
+    &lt;%! String[] fruits; %>
+    &lt;jsp:useBean id="foo" scope="page" class="checkbox.CheckTest"/>
+
+    &lt;jsp:setProperty name="foo" property="fruit" param="fruit"/>
+    &lt;hr>
+    The checked fruits (got using request) are: &lt;br>
+    &lt;%
+        fruits = request.getParameterValues("fruit");
+    %>
+    &lt;ul>
+        &lt;%
+            if (fruits != null) {
+                for (int i = 0; i &lt; fruits.length; i++) {
+        %>
+        &lt;li>
+            &lt;%
+
+                          out.println (util.HTMLFilter.filter(fruits[i]));
+                      }
+                    } else out.println ("none selected");
+
+            %>
+    &lt;/ul>
+    &lt;br>
+    &lt;hr>
+
+    The checked fruits (got using beans) are &lt;br>
+
+    &lt;%
+        fruits = foo.getFruit();
+    %>
+    &lt;ul>
+        &lt;%
+            if (!fruits[0].equals("1")) {
+                for (int i = 0; i &lt; fruits.length; i++) {
+        %>
+        &lt;li>
+            &lt;%
+
+                              out.println (util.HTMLFilter.filter(fruits[i]));
+                      }
+                    } else out.println ("none selected");
+
+            %>
+    &lt;/ul>
+&lt;/font>
+&lt;/body>
+&lt;/html>
+</pre></body></html>

Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/checkbox/checkresult.jsp.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/checkbox/checkresult.jsp.html
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/checkbox/checkresult.jsp.html
------------------------------------------------------------------------------
    svn:mime-type = text/html

Added: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/colors/colrs.jsp.html
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/colors/colrs.jsp.html?rev=675761&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/colors/colrs.jsp.html (added)
+++ geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/colors/colrs.jsp.html Thu Jul 10 14:23:15 2008
@@ -0,0 +1,76 @@
+<html><body><pre>
+&lt;html>
+&lt;!--
+ 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.
+-->
+
+&lt;jsp:useBean id="cb" scope="session" class="colors.ColorGameBean"/>
+&lt;jsp:setProperty name="cb" property="*"/>
+
+&lt;%
+    cb.processRequest(request);
+%>
+
+&lt;body bgcolor=&lt;%= cb.getColor1() %>>
+&lt;font size=6 color=&lt;%= cb.getColor2() %>>
+    &lt;p>
+
+        &lt;% if (cb.getHint()==true) { %>
+
+    &lt;p> Hint #1: Vampires prey at night!
+
+    &lt;p>
+
+    &lt;p> Hint #2: Nancy without the n.
+
+        &lt;% } %>
+
+        &lt;% if  (cb.getSuccess()==true) { %>
+
+    &lt;p> CONGRATULATIONS!!
+        &lt;% if  (cb.getHintTaken()==true) { %>
+
+    &lt;p> ( although I know you cheated and peeked into the hints)
+
+        &lt;% } %>
+
+        &lt;% } %>
+
+    &lt;p> Total attempts so far: &lt;%= cb.getAttempts() %>
+
+    &lt;p>
+
+    &lt;p>
+
+    &lt;form method=POST action=colrs.jsp>
+
+        Color #1: &lt;input type=text name=color1 size=16>
+
+        &lt;br>
+
+        Color #2: &lt;input type=text name=color2 size=16>
+
+        &lt;p>
+
+            &lt;input type=submit name=action value="Submit">
+            &lt;input type=submit name=action value="Hint">
+
+    &lt;/form>
+
+&lt;/font>
+&lt;/body>
+&lt;/html>
+</pre></body></html>

Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/colors/colrs.jsp.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/colors/colrs.jsp.html
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/colors/colrs.jsp.html
------------------------------------------------------------------------------
    svn:mime-type = text/html

Added: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/dates/date.jsp.html
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/dates/date.jsp.html?rev=675761&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/dates/date.jsp.html (added)
+++ geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/dates/date.jsp.html Thu Jul 10 14:23:15 2008
@@ -0,0 +1,54 @@
+<html><body><pre>
+&lt;html>
+&lt;!--
+ 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.
+-->
+
+&lt;%@ page session="false" %>
+
+&lt;body bgcolor="white">
+&lt;jsp:useBean id='clock' scope='page' class='dates.JspCalendar' type="dates.JspCalendar"/>
+
+&lt;font size=4>
+    &lt;ul>
+        &lt;li> Day of month: is
+            &lt;jsp:getProperty name="clock" property="dayOfMonth"/>
+        &lt;li> Year: is
+            &lt;jsp:getProperty name="clock" property="year"/>
+        &lt;li> Month: is
+            &lt;jsp:getProperty name="clock" property="month"/>
+        &lt;li> Time: is
+            &lt;jsp:getProperty name="clock" property="time"/>
+        &lt;li> Date: is
+            &lt;jsp:getProperty name="clock" property="date"/>
+        &lt;li> Day: is
+            &lt;jsp:getProperty name="clock" property="day"/>
+        &lt;li> Day Of Year: is
+            &lt;jsp:getProperty name="clock" property="dayOfYear"/>
+        &lt;li> Week Of Year: is
+            &lt;jsp:getProperty name="clock" property="weekOfYear"/>
+        &lt;li> era: is
+            &lt;jsp:getProperty name="clock" property="era"/>
+        &lt;li> DST Offset: is
+            &lt;jsp:getProperty name="clock" property="DSTOffset"/>
+        &lt;li> Zone Offset: is
+            &lt;jsp:getProperty name="clock" property="zoneOffset"/>
+    &lt;/ul>
+&lt;/font>
+
+&lt;/body>
+&lt;/html>
+</pre></body></html>

Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/dates/date.jsp.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/dates/date.jsp.html
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/dates/date.jsp.html
------------------------------------------------------------------------------
    svn:mime-type = text/html

Added: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/error/err.jsp.html
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/error/err.jsp.html?rev=675761&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/error/err.jsp.html (added)
+++ geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/error/err.jsp.html Thu Jul 10 14:23:15 2008
@@ -0,0 +1,48 @@
+<html><body><pre>
+&lt;html>
+&lt;!--
+ 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.
+-->
+&lt;body bgcolor="lightblue">
+
+&lt;%@ page errorPage="errorpge.jsp" %>
+&lt;jsp:useBean id="foo" scope="request" class="error.Smart"/>
+&lt;%
+    String name = null;
+
+    if (request.getParameter("name") == null) {
+%>
+&lt;%@ include file="/error/error.html" %>
+&lt;%
+} else {
+    foo.setName(request.getParameter("name"));
+    if (foo.getName().equalsIgnoreCase("integra"))
+        name = "acura";
+    if (name.equalsIgnoreCase("acura")) {
+%>
+
+&lt;H1> Yes!!! &lt;a href="http://www.acura.com">Acura&lt;/a> is my favorite car.
+
+    &lt;%
+
+                  }
+                }
+
+    %>
+&lt;/body>
+&lt;/html>
+
+</pre></body></html>

Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/error/err.jsp.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/error/err.jsp.html
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/error/err.jsp.html
------------------------------------------------------------------------------
    svn:mime-type = text/html

Added: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/error/errorpge.jsp.html
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/error/errorpge.jsp.html?rev=675761&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/error/errorpge.jsp.html (added)
+++ geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/error/errorpge.jsp.html Thu Jul 10 14:23:15 2008
@@ -0,0 +1,27 @@
+<html><body><pre>
+&lt;html>
+&lt;!--
+ 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.
+-->
+
+&lt;body bgcolor="red">
+
+&lt;%@ page isErrorPage="true" %>
+&lt;h1> The exception &lt;%= exception.getMessage() %> tells me you
+    made a wrong choice.
+&lt;/body>
+&lt;/html>
+</pre></body></html>

Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/error/errorpge.jsp.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/error/errorpge.jsp.html
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/error/errorpge.jsp.html
------------------------------------------------------------------------------
    svn:mime-type = text/html

Added: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/forward/forward.jsp.html
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/forward/forward.jsp.html?rev=675761&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/forward/forward.jsp.html (added)
+++ geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/forward/forward.jsp.html Thu Jul 10 14:23:15 2008
@@ -0,0 +1,35 @@
+<html><body><pre>
+&lt;!--
+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.
+-->
+&lt;html>
+&lt;%
+    double freeMem = Runtime.getRuntime().freeMemory();
+    double totlMem = Runtime.getRuntime().totalMemory();
+    double percent = freeMem / totlMem;
+    if (percent &lt; 0.5) {
+%>
+
+&lt;jsp:forward page="/forward/one.jsp"/>
+
+&lt;% } else { %>
+
+&lt;jsp:forward page="two.html"/>
+
+&lt;% } %>
+
+&lt;/html>
+</pre></body></html>

Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/forward/forward.jsp.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/forward/forward.jsp.html
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/forward/forward.jsp.html
------------------------------------------------------------------------------
    svn:mime-type = text/html

Added: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/forward/one.jsp.html
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/forward/one.jsp.html?rev=675761&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/forward/one.jsp.html (added)
+++ geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/forward/one.jsp.html Thu Jul 10 14:23:15 2008
@@ -0,0 +1,24 @@
+<html><body><pre>
+&lt;!--
+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.
+-->
+&lt;html>
+&lt;body bgcolor="white">
+&lt;font color="red">
+
+    VM Memory usage &lt; 50%.
+&lt;/html>
+</pre></body></html>

Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/forward/one.jsp.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/forward/one.jsp.html
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/forward/one.jsp.html
------------------------------------------------------------------------------
    svn:mime-type = text/html

Added: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/include/foo.jsp.html
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/include/foo.jsp.html?rev=675761&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/include/foo.jsp.html (added)
+++ geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/include/foo.jsp.html Thu Jul 10 14:23:15 2008
@@ -0,0 +1,23 @@
+<html><body><pre>
+&lt;!--
+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.
+-->
+
+&lt;body bgcolor="white">
+&lt;font color="red">
+
+    &lt;%= System.currentTimeMillis() %>
+</pre></body></html>

Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/include/foo.jsp.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/include/foo.jsp.html
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/include/foo.jsp.html
------------------------------------------------------------------------------
    svn:mime-type = text/html

Added: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/include/include.jsp.html
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/include/include.jsp.html?rev=675761&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/include/include.jsp.html (added)
+++ geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/include/include.jsp.html Thu Jul 10 14:23:15 2008
@@ -0,0 +1,38 @@
+<html><body><pre>
+&lt;html>
+&lt;!--
+ 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.
+-->
+
+&lt;body bgcolor="white">
+
+&lt;font color="red">
+
+    &lt;%@ page buffer="5kb" autoFlush="false" %>
+
+    &lt;p>In place evaluation of another JSP which gives you the current time:
+
+        &lt;%@ include file="foo.jsp" %>
+
+    &lt;p>
+        &lt;jsp:include page="/include/foo.html" flush="true"/> by including the output of another JSP:
+
+        &lt;jsp:include page="foo.jsp" flush="true"/>
+
+        :-)
+
+&lt;/html>
+</pre></body></html>

Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/include/include.jsp.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/include/include.jsp.html
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/include/include.jsp.html
------------------------------------------------------------------------------
    svn:mime-type = text/html

Added: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/el/Functions.java.html
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/el/Functions.java.html?rev=675761&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/el/Functions.java.html (added)
+++ geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/el/Functions.java.html Thu Jul 10 14:23:15 2008
@@ -0,0 +1,45 @@
+<html><body><pre>
+/*
+* 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 jsp2.examples.el;
+
+/**
+ * Defines the functions for the jsp2 example tag library.
+ * 
+ * &lt;p>Each function is defined as a static method.&lt;/p>
+ */
+public class Functions {
+    public static String reverse( String text ) {
+        return new StringBuffer( text ).reverse().toString();
+    }
+
+    public static int numVowels( String text ) {
+        String vowels = "aeiouAEIOU";
+	int result = 0;
+        for( int i = 0; i &lt; text.length(); i++ ) {
+	    if( vowels.indexOf( text.charAt( i ) ) != -1 ) {
+	        result++;
+	    }
+	}
+	return result;
+    }
+
+    public static String caps( String text ) {
+        return text.toUpperCase();
+    }
+}
+</pre></body></html>

Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/el/Functions.java.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/el/Functions.java.html
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/el/Functions.java.html
------------------------------------------------------------------------------
    svn:mime-type = text/html

Added: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/el/basic-arithmetic.jsp.html
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/el/basic-arithmetic.jsp.html?rev=675761&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/el/basic-arithmetic.jsp.html (added)
+++ geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/el/basic-arithmetic.jsp.html Thu Jul 10 14:23:15 2008
@@ -0,0 +1,90 @@
+<html><body><pre>
+&lt;!--
+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.
+-->
+&lt;html>
+&lt;head>
+    &lt;title>JSP 2.0 Expression Language - Basic Arithmetic&lt;/title>
+&lt;/head>
+&lt;body>
+&lt;h1>JSP 2.0 Expression Language - Basic Arithmetic&lt;/h1>
+&lt;hr>
+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.
+&lt;br>
+&lt;blockquote>
+    &lt;code>
+        &lt;table border="1">
+            &lt;thead>
+                &lt;td>&lt;b>EL Expression&lt;/b>&lt;/td>
+                &lt;td>&lt;b>Result&lt;/b>&lt;/td>
+            &lt;/thead>
+            &lt;tr>
+                &lt;td>\${1}&lt;/td>
+                &lt;td>${1}&lt;/td>
+            &lt;/tr>
+            &lt;tr>
+                &lt;td>\${1 + 2}&lt;/td>
+                &lt;td>${1 + 2}&lt;/td>
+            &lt;/tr>
+            &lt;tr>
+                &lt;td>\${1.2 + 2.3}&lt;/td>
+                &lt;td>${1.2 + 2.3}&lt;/td>
+            &lt;/tr>
+            &lt;tr>
+                &lt;td>\${1.2E4 + 1.4}&lt;/td>
+                &lt;td>${1.2E4 + 1.4}&lt;/td>
+            &lt;/tr>
+            &lt;tr>
+                &lt;td>\${-4 - 2}&lt;/td>
+                &lt;td>${-4 - 2}&lt;/td>
+            &lt;/tr>
+            &lt;tr>
+                &lt;td>\${21 * 2}&lt;/td>
+                &lt;td>${21 * 2}&lt;/td>
+            &lt;/tr>
+            &lt;tr>
+                &lt;td>\${3/4}&lt;/td>
+                &lt;td>${3/4}&lt;/td>
+            &lt;/tr>
+            &lt;tr>
+                &lt;td>\${3 div 4}&lt;/td>
+                &lt;td>${3 div 4}&lt;/td>
+            &lt;/tr>
+            &lt;tr>
+                &lt;td>\${3/0}&lt;/td>
+                &lt;td>${3/0}&lt;/td>
+            &lt;/tr>
+            &lt;tr>
+                &lt;td>\${10%4}&lt;/td>
+                &lt;td>${10%4}&lt;/td>
+            &lt;/tr>
+            &lt;tr>
+                &lt;td>\${10 mod 4}&lt;/td>
+                &lt;td>${10 mod 4}&lt;/td>
+            &lt;/tr>
+            &lt;tr>
+                &lt;td>\${(1==2) ? 3 : 4}&lt;/td>
+                &lt;td>${(1==2) ? 3 : 4}&lt;/td>
+            &lt;/tr>
+        &lt;/table>
+    &lt;/code>
+&lt;/blockquote>
+&lt;/body>
+&lt;/html>
+</pre></body></html>

Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/el/basic-arithmetic.jsp.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/el/basic-arithmetic.jsp.html
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/el/basic-arithmetic.jsp.html
------------------------------------------------------------------------------
    svn:mime-type = text/html

Added: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/el/basic-comparisons.jsp.html
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/el/basic-comparisons.jsp.html?rev=675761&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/el/basic-comparisons.jsp.html (added)
+++ geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/el/basic-comparisons.jsp.html Thu Jul 10 14:23:15 2008
@@ -0,0 +1,118 @@
+<html><body><pre>
+&lt;!--
+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.
+-->
+&lt;html>
+&lt;head>
+    &lt;title>JSP 2.0 Expression Language - Basic Comparisons&lt;/title>
+&lt;/head>
+&lt;body>
+&lt;h1>JSP 2.0 Expression Language - Basic Comparisons&lt;/h1>
+&lt;hr>
+This example illustrates basic Expression Language comparisons.
+The following comparison operators are supported:
+&lt;ul>
+    &lt;li>Less-than (&amp;lt; or lt)&lt;/li>
+    &lt;li>Greater-than (&amp;gt; or gt)&lt;/li>
+    &lt;li>Less-than-or-equal (&amp;lt;= or le)&lt;/li>
+    &lt;li>Greater-than-or-equal (&amp;gt;= or ge)&lt;/li>
+    &lt;li>Equal (== or eq)&lt;/li>
+    &lt;li>Not Equal (!= or ne)&lt;/li>
+&lt;/ul>
+&lt;blockquote>
+    &lt;u>&lt;b>Numeric&lt;/b>&lt;/u>
+    &lt;code>
+        &lt;table border="1">
+            &lt;thead>
+                &lt;td>&lt;b>EL Expression&lt;/b>&lt;/td>
+                &lt;td>&lt;b>Result&lt;/b>&lt;/td>
+            &lt;/thead>
+            &lt;tr>
+                &lt;td>\${1 &amp;lt; 2}&lt;/td>
+                &lt;td>${1 &lt; 2}&lt;/td>
+            &lt;/tr>
+            &lt;tr>
+                &lt;td>\${1 lt 2}&lt;/td>
+                &lt;td>${1 lt 2}&lt;/td>
+            &lt;/tr>
+            &lt;tr>
+                &lt;td>\${1 &amp;gt; (4/2)}&lt;/td>
+                &lt;td>${1 > (4/2)}&lt;/td>
+            &lt;/tr>
+            &lt;tr>
+                &lt;td>\${1 &amp;gt; (4/2)}&lt;/td>
+                &lt;td>${1 > (4/2)}&lt;/td>
+            &lt;/tr>
+            &lt;tr>
+                &lt;td>\${4.0 &amp;gt;= 3}&lt;/td>
+                &lt;td>${4.0 >= 3}&lt;/td>
+            &lt;/tr>
+            &lt;tr>
+                &lt;td>\${4.0 ge 3}&lt;/td>
+                &lt;td>${4.0 ge 3}&lt;/td>
+            &lt;/tr>
+            &lt;tr>
+                &lt;td>\${4 &amp;lt;= 3}&lt;/td>
+                &lt;td>${4 &lt;= 3}&lt;/td>
+            &lt;/tr>
+            &lt;tr>
+                &lt;td>\${4 le 3}&lt;/td>
+                &lt;td>${4 le 3}&lt;/td>
+            &lt;/tr>
+            &lt;tr>
+                &lt;td>\${100.0 == 100}&lt;/td>
+                &lt;td>${100.0 == 100}&lt;/td>
+            &lt;/tr>
+            &lt;tr>
+                &lt;td>\${100.0 eq 100}&lt;/td>
+                &lt;td>${100.0 eq 100}&lt;/td>
+            &lt;/tr>
+            &lt;tr>
+                &lt;td>\${(10*10) != 100}&lt;/td>
+                &lt;td>${(10*10) != 100}&lt;/td>
+            &lt;/tr>
+            &lt;tr>
+                &lt;td>\${(10*10) ne 100}&lt;/td>
+                &lt;td>${(10*10) ne 100}&lt;/td>
+            &lt;/tr>
+        &lt;/table>
+    &lt;/code>
+    &lt;br>
+    &lt;u>&lt;b>Alphabetic&lt;/b>&lt;/u>
+    &lt;code>
+        &lt;table border="1">
+            &lt;thead>
+                &lt;td>&lt;b>EL Expression&lt;/b>&lt;/td>
+                &lt;td>&lt;b>Result&lt;/b>&lt;/td>
+            &lt;/thead>
+            &lt;tr>
+                &lt;td>\${'a' &amp;lt; 'b'}&lt;/td>
+                &lt;td>${'a' &lt; 'b'}&lt;/td>
+            &lt;/tr>
+            &lt;tr>
+                &lt;td>\${'hip' &amp;gt; 'hit'}&lt;/td>
+                &lt;td>${'hip' > 'hit'}&lt;/td>
+            &lt;/tr>
+            &lt;tr>
+                &lt;td>\${'4' &amp;gt; 3}&lt;/td>
+                &lt;td>${'4' > 3}&lt;/td>
+            &lt;/tr>
+        &lt;/table>
+    &lt;/code>
+&lt;/blockquote>
+&lt;/body>
+&lt;/html>
+</pre></body></html>

Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/el/basic-comparisons.jsp.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/el/basic-comparisons.jsp.html
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/el/basic-comparisons.jsp.html
------------------------------------------------------------------------------
    svn:mime-type = text/html

Added: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/el/functions.jsp.html
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/el/functions.jsp.html?rev=675761&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/el/functions.jsp.html (added)
+++ geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/el/functions.jsp.html Thu Jul 10 14:23:15 2008
@@ -0,0 +1,69 @@
+<html><body><pre>
+&lt;!--
+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.
+-->
+&lt;%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
+&lt;%@ taglib prefix="my" uri="http://jakarta.apache.org/tomcat/jsp2-example-taglib" %>
+
+&lt;html>
+&lt;head>
+    &lt;title>JSP 2.0 Expression Language - Functions&lt;/title>
+&lt;/head>
+&lt;body>
+&lt;h1>JSP 2.0 Expression Language - Functions&lt;/h1>
+&lt;hr>
+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.
+
+&lt;blockquote>
+    &lt;u>&lt;b>Change Parameter&lt;/b>&lt;/u>
+
+    &lt;form action="functions.jsp" method="GET">
+        foo = &lt;input type="text" name="foo" value="${fn:escapeXml(param["foo"])}">
+        &lt;input type="submit">
+    &lt;/form>
+    &lt;br>
+    &lt;code>
+        &lt;table border="1">
+            &lt;thead>
+                &lt;td>&lt;b>EL Expression&lt;/b>&lt;/td>
+                &lt;td>&lt;b>Result&lt;/b>&lt;/td>
+            &lt;/thead>
+            &lt;tr>
+                &lt;td>\${param["foo"]}&lt;/td>
+                &lt;td>${fn:escapeXml(param["foo"])}&amp;nbsp;&lt;/td>
+            &lt;/tr>
+            &lt;tr>
+                &lt;td>\${my:reverse(param["foo"])}&lt;/td>
+                &lt;td>${my:reverse(fn:escapeXml(param["foo"]))}&amp;nbsp;&lt;/td>
+            &lt;/tr>
+            &lt;tr>
+                &lt;td>\${my:reverse(my:reverse(param["foo"]))}&lt;/td>
+                &lt;td>${my:reverse(my:reverse(fn:escapeXml(param["foo"])))}&amp;nbsp;&lt;/td>
+            &lt;/tr>
+            &lt;tr>
+                &lt;td>\${my:countVowels(param["foo"])}&lt;/td>
+                &lt;td>${my:countVowels(fn:escapeXml(param["foo"]))}&amp;nbsp;&lt;/td>
+            &lt;/tr>
+        &lt;/table>
+    &lt;/code>
+&lt;/blockquote>
+&lt;/body>
+&lt;/html>
+
+</pre></body></html>

Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/el/functions.jsp.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/el/functions.jsp.html
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/el/functions.jsp.html
------------------------------------------------------------------------------
    svn:mime-type = text/html

Added: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/el/implicit-objects.jsp.html
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/el/implicit-objects.jsp.html?rev=675761&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/el/implicit-objects.jsp.html (added)
+++ geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/el/implicit-objects.jsp.html Thu Jul 10 14:23:15 2008
@@ -0,0 +1,101 @@
+<html><body><pre>
+&lt;!--
+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.
+-->
+&lt;%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
+
+&lt;html>
+&lt;head>
+    &lt;title>JSP 2.0 Expression Language - Implicit Objects&lt;/title>
+&lt;/head>
+&lt;body>
+&lt;h1>JSP 2.0 Expression Language - Implicit Objects&lt;/h1>
+&lt;hr>
+This example illustrates some of the implicit objects available
+in the Expression Lanaguage. The following implicit objects are
+available (not all illustrated here):
+&lt;ul>
+    &lt;li>pageContext - the PageContext object&lt;/li>
+    &lt;li>pageScope - a Map that maps page-scoped attribute names to
+        their values
+    &lt;/li>
+    &lt;li>requestScope - a Map that maps request-scoped attribute names
+        to their values
+    &lt;/li>
+    &lt;li>sessionScope - a Map that maps session-scoped attribute names
+        to their values
+    &lt;/li>
+    &lt;li>applicationScope - a Map that maps application-scoped attribute
+        names to their values
+    &lt;/li>
+    &lt;li>param - a Map that maps parameter names to a single String
+        parameter value
+    &lt;/li>
+    &lt;li>paramValues - a Map that maps parameter names to a String[] of
+        all values for that parameter
+    &lt;/li>
+    &lt;li>header - a Map that maps header names to a single String
+        header value
+    &lt;/li>
+    &lt;li>headerValues - a Map that maps header names to a String[] of
+        all values for that header
+    &lt;/li>
+    &lt;li>initParam - a Map that maps context initialization parameter
+        names to their String parameter value
+    &lt;/li>
+    &lt;li>cookie - a Map that maps cookie names to a single Cookie object.&lt;/li>
+&lt;/ul>
+
+&lt;blockquote>
+    &lt;u>&lt;b>Change Parameter&lt;/b>&lt;/u>
+
+    &lt;form action="implicit-objects.jsp" method="GET">
+        foo = &lt;input type="text" name="foo" value="${fn:escapeXml(param["foo"])}">
+        &lt;input type="submit">
+    &lt;/form>
+    &lt;br>
+    &lt;code>
+        &lt;table border="1">
+            &lt;thead>
+                &lt;td>&lt;b>EL Expression&lt;/b>&lt;/td>
+                &lt;td>&lt;b>Result&lt;/b>&lt;/td>
+            &lt;/thead>
+            &lt;tr>
+                &lt;td>\${param.foo}&lt;/td>
+                &lt;td>${fn:escapeXml(param["foo"])}&amp;nbsp;&lt;/td>
+            &lt;/tr>
+            &lt;tr>
+                &lt;td>\${param["foo"]}&lt;/td>
+                &lt;td>${fn:escapeXml(param["foo"])}&amp;nbsp;&lt;/td>
+            &lt;/tr>
+            &lt;tr>
+                &lt;td>\${header["host"]}&lt;/td>
+                &lt;td>${fn:escapeXml(header["host"])}&amp;nbsp;&lt;/td>
+            &lt;/tr>
+            &lt;tr>
+                &lt;td>\${header["accept"]}&lt;/td>
+                &lt;td>${fn:escapeXml(header["accept"])}&amp;nbsp;&lt;/td>
+            &lt;/tr>
+            &lt;tr>
+                &lt;td>\${header["user-agent"]}&lt;/td>
+                &lt;td>${fn:escapeXml(header["user-agent"])}&amp;nbsp;&lt;/td>
+            &lt;/tr>
+        &lt;/table>
+    &lt;/code>
+&lt;/blockquote>
+&lt;/body>
+&lt;/html>
+</pre></body></html>

Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/el/implicit-objects.jsp.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/el/implicit-objects.jsp.html
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/el/implicit-objects.jsp.html
------------------------------------------------------------------------------
    svn:mime-type = text/html

Added: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/jspattribute/FooBean.java.html
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/jspattribute/FooBean.java.html?rev=675761&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/jspattribute/FooBean.java.html (added)
+++ geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/jspattribute/FooBean.java.html Thu Jul 10 14:23:15 2008
@@ -0,0 +1,38 @@
+<html><body><pre>
+/*
+* 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 jsp2.examples;
+
+public class FooBean {
+    private String bar;
+    
+    public FooBean() {
+        bar = "Initial value";
+    }
+    
+    public String getBar() {
+        return this.bar;
+    }
+    
+    public void setBar(String bar) {
+        this.bar = bar;
+    }
+    
+}
+</pre></body></html>

Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/jspattribute/FooBean.java.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/jspattribute/FooBean.java.html
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/jspattribute/FooBean.java.html
------------------------------------------------------------------------------
    svn:mime-type = text/html

Added: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/jspattribute/HelloWorldSimpleTag.java.html
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/jspattribute/HelloWorldSimpleTag.java.html?rev=675761&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/jspattribute/HelloWorldSimpleTag.java.html (added)
+++ geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/jspattribute/HelloWorldSimpleTag.java.html Thu Jul 10 14:23:15 2008
@@ -0,0 +1,34 @@
+<html><body><pre>
+/*
+* 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 jsp2.examples.simpletag;
+
+import javax.servlet.jsp.JspException;
+import javax.servlet.jsp.tagext.SimpleTagSupport;
+import java.io.IOException;
+
+/**
+ * SimpleTag handler that prints "Hello, world!"
+ */
+public class HelloWorldSimpleTag extends SimpleTagSupport {
+    public void doTag() throws JspException, IOException {
+	getJspContext().getOut().write( "Hello, world!" );
+    }
+}
+</pre></body></html>

Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/jspattribute/HelloWorldSimpleTag.java.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/jspattribute/HelloWorldSimpleTag.java.html
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/jspattribute/HelloWorldSimpleTag.java.html
------------------------------------------------------------------------------
    svn:mime-type = text/html

Added: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/jspattribute/ShuffleSimpleTag.java.html
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/jspattribute/ShuffleSimpleTag.java.html?rev=675761&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/jspattribute/ShuffleSimpleTag.java.html (added)
+++ geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/jspattribute/ShuffleSimpleTag.java.html Thu Jul 10 14:23:15 2008
@@ -0,0 +1,83 @@
+<html><body><pre>
+/*
+* 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 jsp2.examples.simpletag;
+
+import javax.servlet.jsp.JspException;
+import javax.servlet.jsp.tagext.JspFragment;
+import javax.servlet.jsp.tagext.SimpleTagSupport;
+import java.io.IOException;
+
+/**
+ * SimpleTag handler that accepts takes three attributes of type
+ * JspFragment and invokes then in a random order.
+ */
+public class ShuffleSimpleTag extends SimpleTagSupport {
+    private JspFragment fragment1;
+    private JspFragment fragment2;
+    private JspFragment fragment3;
+
+    public void doTag() throws JspException, IOException {
+        switch( (int)(Math.random() * 6) ) {
+            case 0:
+                fragment1.invoke( null );
+                fragment2.invoke( null );
+                fragment3.invoke( null );
+                break;
+            case 1:
+                fragment1.invoke( null );
+                fragment3.invoke( null );
+                fragment2.invoke( null );
+                break;
+            case 2:
+                fragment2.invoke( null );
+                fragment1.invoke( null );
+                fragment3.invoke( null );
+                break;
+            case 3:
+                fragment2.invoke( null );
+                fragment3.invoke( null );
+                fragment1.invoke( null );
+                break;
+            case 4:
+                fragment3.invoke( null );
+                fragment1.invoke( null );
+                fragment2.invoke( null );
+                break;
+            case 5:
+                fragment3.invoke( null );
+                fragment2.invoke( null );
+                fragment1.invoke( null );
+                break;
+        }
+    }
+
+    public void setFragment1( JspFragment fragment1 ) {
+        this.fragment1 = fragment1;
+    }
+    
+    public void setFragment2( JspFragment fragment2 ) {
+        this.fragment2 = fragment2;
+    }
+    
+    public void setFragment3( JspFragment fragment3 ) {
+        this.fragment3 = fragment3;
+    }
+}
+</pre></body></html>

Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/jspattribute/ShuffleSimpleTag.java.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/jspattribute/ShuffleSimpleTag.java.html
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/jspattribute/ShuffleSimpleTag.java.html
------------------------------------------------------------------------------
    svn:mime-type = text/html

Added: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/jspattribute/TileSimpleTag.java.html
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/jspattribute/TileSimpleTag.java.html?rev=675761&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/jspattribute/TileSimpleTag.java.html (added)
+++ geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/jspattribute/TileSimpleTag.java.html Thu Jul 10 14:23:15 2008
@@ -0,0 +1,48 @@
+<html><body><pre>
+/*
+* 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 jsp2.examples.simpletag;
+
+import javax.servlet.jsp.JspException;
+import javax.servlet.jsp.tagext.SimpleTagSupport;
+import java.io.IOException;
+
+/**
+ * Displays a tile as a single cell in a table.
+ */
+public class TileSimpleTag extends SimpleTagSupport {
+    private String color;
+    private String label;
+
+    public void doTag() throws JspException, IOException {
+	getJspContext().getOut().write( 
+	    "&lt;td width=\"32\" height=\"32\" bgcolor=\"" + this.color + 
+	    "\">&lt;font color=\"#ffffff\">&lt;center>" + this.label + 
+                "&lt;/center>&lt;/font>&lt;/td>" );
+    }
+
+    public void setColor( String color ) {
+        this.color = color;
+    }
+    
+    public void setLabel( String label ) {
+        this.label = label;
+    }
+}
+</pre></body></html>

Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/jspattribute/TileSimpleTag.java.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/jspattribute/TileSimpleTag.java.html
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/jspattribute/TileSimpleTag.java.html
------------------------------------------------------------------------------
    svn:mime-type = text/html



Mime
View raw message