You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by li...@apache.org on 2008/07/10 23:23:16 UTC
svn commit: r675761 [2/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...
Added: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/jspattribute/jspattribute.jsp.html
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/jspattribute/jspattribute.jsp.html?rev=675761&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/jspattribute/jspattribute.jsp.html (added)
+++ geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/jspattribute/jspattribute.jsp.html Thu Jul 10 14:23:15 2008
@@ -0,0 +1,49 @@
+<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.
+-->
+<%@ taglib prefix="my" uri="http://jakarta.apache.org/tomcat/jsp2-example-taglib" %>
+
+<html>
+<head>
+ <title>JSP 2.0 Examples - jsp:attribute and jsp:body</title>
+</head>
+<body>
+<h1>JSP 2.0 Examples - jsp:attribute and jsp:body</h1>
+<hr>
+<p>The new &lt;jsp:attribute&gt; and &lt;jsp:body&gt;
+ standard actions can be used to specify the value of any standard
+ action or custom action attribute.</p>
+
+<p>This example uses the &lt;jsp:attribute&gt;
+ standard action to use the output of a custom action invocation
+ (one that simply outputs "Hello, World!") to set the value of a
+ bean property. This would normally require an intermediary
+ step, such as using JSTL's &lt;c:set&gt; action.</p>
+<br>
+<jsp:useBean id="foo" class="jsp2.examples.FooBean">
+ Bean created! Setting foo.bar...<br>
+ <jsp:setProperty name="foo" property="bar">
+ <jsp:attribute name="value">
+ <my:helloWorld/>
+ </jsp:attribute>
+ </jsp:setProperty>
+</jsp:useBean>
+<br>
+Result: ${foo.bar}
+</body>
+</html>
+</pre></body></html>
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/jspattribute/jspattribute.jsp.html
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/jspattribute/jspattribute.jsp.html
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/jspattribute/jspattribute.jsp.html
------------------------------------------------------------------------------
svn:mime-type = text/html
Added: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/jspattribute/shuffle.jsp.html
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/jspattribute/shuffle.jsp.html?rev=675761&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/jspattribute/shuffle.jsp.html (added)
+++ geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/jspattribute/shuffle.jsp.html Thu Jul 10 14:23:15 2008
@@ -0,0 +1,93 @@
+<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.
+-->
+<%@ taglib prefix="my" uri="http://jakarta.apache.org/tomcat/jsp2-example-taglib" %>
+
+<html>
+<head>
+ <title>JSP 2.0 Examples - Shuffle Example</title>
+</head>
+<body>
+<h1>JSP 2.0 Examples - Shuffle Example</h1>
+<hr>
+<p>Try reloading the page a few times. Both the rows and the columns
+ are shuffled and appear different each time.</p>
+
+<p>Here's how the code works. The SimpleTag handler called
+ &lt;my:shuffle&gt; accepts three attributes. Each attribute is a
+ JSP Fragment, meaning it is a fragment of JSP code that can be
+ dynamically executed by the shuffle tag handler on demand. The
+ shuffle tag handler executes the three fragments in a random order.
+ To shuffle both the rows and the columns, the shuffle tag is used
+ with itself as a parameter.</p>
+<hr>
+<blockquote>
+ <font color="#ffffff">
+ <table>
+ <my:shuffle>
+ <jsp:attribute name="fragment1">
+ <tr>
+ <my:shuffle>
+ <jsp:attribute name="fragment1">
+ <my:tile color="#ff0000" label="A"/>
+ </jsp:attribute>
+ <jsp:attribute name="fragment2">
+ <my:tile color="#00ff00" label="B"/>
+ </jsp:attribute>
+ <jsp:attribute name="fragment3">
+ <my:tile color="#0000ff" label="C"/>
+ </jsp:attribute>
+ </my:shuffle>
+ </tr>
+ </jsp:attribute>
+ <jsp:attribute name="fragment2">
+ <tr>
+ <my:shuffle>
+ <jsp:attribute name="fragment1">
+ <my:tile color="#ff0000" label="1"/>
+ </jsp:attribute>
+ <jsp:attribute name="fragment2">
+ <my:tile color="#00ff00" label="2"/>
+ </jsp:attribute>
+ <jsp:attribute name="fragment3">
+ <my:tile color="#0000ff" label="3"/>
+ </jsp:attribute>
+ </my:shuffle>
+ </tr>
+ </jsp:attribute>
+ <jsp:attribute name="fragment3">
+ <tr>
+ <my:shuffle>
+ <jsp:attribute name="fragment1">
+ <my:tile color="#ff0000" label="!"/>
+ </jsp:attribute>
+ <jsp:attribute name="fragment2">
+ <my:tile color="#00ff00" label="@"/>
+ </jsp:attribute>
+ <jsp:attribute name="fragment3">
+ <my:tile color="#0000ff" label="#"/>
+ </jsp:attribute>
+ </my:shuffle>
+ </tr>
+ </jsp:attribute>
+ </my:shuffle>
+ </table>
+ </font>
+</blockquote>
+</body>
+</html>
+</pre></body></html>
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/jspattribute/shuffle.jsp.html
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/jspattribute/shuffle.jsp.html
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/jspattribute/shuffle.jsp.html
------------------------------------------------------------------------------
svn:mime-type = text/html
Added: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/jspx/basic.jspx.html
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/jspx/basic.jspx.html?rev=675761&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/jspx/basic.jspx.html (added)
+++ geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/jspx/basic.jspx.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.
+-->
+<tags:xhtmlbasic xmlns:tags="urn:jsptagdir:/WEB-INF/tags"
+ xmlns:jsp="http://java.sun.com/JSP/Page"
+ xmlns:fmt="http://java.sun.com/jsp/jstl/fmt"
+ xmlns="http://www.w3.org/1999/xhtml">
+ <jsp:directive.page contentType="text/html"/>
+ <head>
+ <title>JSPX - XHTML Basic Example</title>
+ </head>
+ <body>
+ <h1>JSPX - XHTML Basic Example</h1>
+ <hr/>
+ This example illustrates how to use JSPX to produce an XHTML basic
+ document suitable for use with mobile phones, televisions,
+ PDAs, vending machines, pagers, car navigation systems,
+ mobile game machines, digital book readers, smart watches, etc.
+ <p/>
+ JSPX lets you create dynamic documents in a pure XML syntax compatible
+ with existing XML tools. The XML syntax in JSP 1.2 was awkward and
+ required &amp;lt;jsp:root&amp;gt; to be the root element of the document.
+ This is no longer the case in JSP 2.0.
+ <p/>
+ This particular example uses a tag file to produce the DOCTYPE and
+ namespace declarations to make the output of this page a valid XHTML
+ Basic document.
+ <p/>
+ Just to prove this is live, here's some dynamic content:
+ <jsp:useBean id="now" class="java.util.Date"/>
+ <fmt:formatDate value="${now}" pattern="MMMM d, yyyy, H:mm:ss"/>
+ </body>
+</tags:xhtmlbasic>
+</pre></body></html>
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/jspx/basic.jspx.html
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/jspx/basic.jspx.html
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/jspx/basic.jspx.html
------------------------------------------------------------------------------
svn:mime-type = text/html
Added: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/jspx/textRotate.jspx.html
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/jspx/textRotate.jspx.html?rev=675761&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/jspx/textRotate.jspx.html (added)
+++ geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/jspx/textRotate.jspx.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.
+-->
+<!--
+ - This example is based off the textRotate.svg example that comes
+ - with Batik. The original example was written by Bill Haneman.
+ - This version by Mark Roth.
+ -->
+<svg xmlns="http://www.w3.org/2000/svg"
+ width="450" height="500" viewBox="0 0 450 500"
+ xmlns:c="http://java.sun.com/jsp/jstl/core"
+ xmlns:fn="http://java.sun.com/jsp/jstl/functions"
+ xmlns:jsp="http://java.sun.com/JSP/Page">
+ <jsp:directive.page contentType="image/svg+xml"/>
+ <title>JSP 2.0 JSPX</title>
+ <!-- select name parameter, or default to JSPX -->
+ <c:set var="name" value='${empty fn:escapeXml(param["name"]) ? "JSPX" : fn:escapeXml(param["name"])}'/>
+ <g id="testContent">
+ <text class="title" x="50%" y="10%" font-size="15" text-anchor="middle">
+ JSP 2.0 XML Syntax (.jspx) Demo
+ </text>
+ <text class="title" x="50%" y="15%" font-size="15" text-anchor="middle">
+ Try changing the name parameter!
+ </text>
+ <g opacity="1.0" transform="translate(225, 250)" id="rotatedText">
+ <c:forEach var="i" begin="1" end="24">
+ <jsp:text>
+ <![CDATA[<g opacity="0.95" transform="scale(1.05) rotate(15)">]]>
+ </jsp:text>
+ <text x="0" y="0" transform="scale(1.6, 1.6)" fill="DarkSlateBlue"
+ text-anchor="middle" font-size="40" font-family="Serif"
+ id="words">${name}</text>
+ </c:forEach>
+ <c:forEach var="i" begin="1" end="24">
+ <jsp:text><![CDATA[</g>]]>
+ </jsp:text>
+ </c:forEach>
+ <text style="font-size:75;font-family:Serif;fill:white"
+ text-anchor="middle">${name}</text>
+ </g>
+ </g>
+</svg>
+</pre></body></html>
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/jspx/textRotate.jspx.html
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/jspx/textRotate.jspx.html
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/jspx/textRotate.jspx.html
------------------------------------------------------------------------------
svn:mime-type = text/html
Added: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/misc/EchoAttributesTag.java.html
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/misc/EchoAttributesTag.java.html?rev=675761&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/misc/EchoAttributesTag.java.html (added)
+++ geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/misc/EchoAttributesTag.java.html Thu Jul 10 14:23:15 2008
@@ -0,0 +1,56 @@
+<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.JspWriter;
+import javax.servlet.jsp.tagext.SimpleTagSupport;
+import javax.servlet.jsp.tagext.DynamicAttributes;
+import java.util.ArrayList;
+import java.io.IOException;
+
+/**
+ * SimpleTag handler that echoes all its attributes
+ */
+public class EchoAttributesTag
+ extends SimpleTagSupport
+ implements DynamicAttributes
+{
+ private ArrayList keys = new ArrayList();
+ private ArrayList values = new ArrayList();
+
+ public void doTag() throws JspException, IOException {
+ JspWriter out = getJspContext().getOut();
+ for( int i = 0; i < keys.size(); i++ ) {
+ String key = (String)keys.get( i );
+ Object value = values.get( i );
+ out.println( "<li>" + key + " = " + value + "</li>" );
+ }
+ }
+
+ public void setDynamicAttribute( String uri, String localName,
+ Object value )
+ throws JspException
+ {
+ keys.add( localName );
+ values.add( value );
+ }
+}
+</pre></body></html>
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/misc/EchoAttributesTag.java.html
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/misc/EchoAttributesTag.java.html
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/misc/EchoAttributesTag.java.html
------------------------------------------------------------------------------
svn:mime-type = text/html
Added: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/misc/coda.jspf.html
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/misc/coda.jspf.html?rev=675761&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/misc/coda.jspf.html (added)
+++ geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/misc/coda.jspf.html Thu Jul 10 14:23:15 2008
@@ -0,0 +1,23 @@
+<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.
+-->
+<hr>
+<center>
+ This banner included with &lt;include-coda&gt;
+</center>
+<hr>
+</pre></body></html>
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/misc/coda.jspf.html
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/misc/coda.jspf.html
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/misc/coda.jspf.html
------------------------------------------------------------------------------
svn:mime-type = text/html
Added: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/misc/config.jsp.html
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/misc/config.jsp.html?rev=675761&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/misc/config.jsp.html (added)
+++ geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/misc/config.jsp.html Thu Jul 10 14:23:15 2008
@@ -0,0 +1,35 @@
+<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.
+-->
+<%@ taglib prefix="my" uri="http://jakarta.apache.org/tomcat/jsp2-example-taglib" %>
+<h1>JSP 2.0 Examples - JSP Configuration</h1>
+<hr>
+<p>Using a &lt;jsp-property-group&gt; element in the web.xml
+ deployment descriptor, this JSP page has been configured in the
+ following ways:</p>
+<ul>
+ <li>Uses &lt;include-prelude&gt; to include the top banner.</li>
+ <li>Uses &lt;include-coda&gt; to include the bottom banner.</li>
+ <li>Uses &lt;scripting-invalid&gt; true to disable
+ &lt;% scripting %&gt; elements
+ </li>
+ <li>Uses &lt;el-ignored&gt; true to disable ${EL} elements</li>
+ <li>Uses &lt;page-encoding&gt; ISO-8859-1 to set the page encoding (though this is the default anyway)</li>
+</ul>
+There are various other configuration options that can be used.
+
+</pre></body></html>
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/misc/config.jsp.html
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/misc/config.jsp.html
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/misc/config.jsp.html
------------------------------------------------------------------------------
svn:mime-type = text/html
Added: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/misc/dynamicattrs.jsp.html
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/misc/dynamicattrs.jsp.html?rev=675761&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/misc/dynamicattrs.jsp.html (added)
+++ geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/misc/dynamicattrs.jsp.html Thu Jul 10 14:23:15 2008
@@ -0,0 +1,46 @@
+<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.
+-->
+<%@ taglib prefix="my" uri="http://jakarta.apache.org/tomcat/jsp2-example-taglib" %>
+<html>
+<head>
+ <title>JSP 2.0 Examples - Dynamic Attributes</title>
+</head>
+<body>
+<h1>JSP 2.0 Examples - Dynamic Attributes</h1>
+<hr>
+<p>This JSP page invokes a custom tag that accepts a dynamic set
+ of attributes. The tag echoes the name and value of all attributes
+ passed to it.</p>
+<hr>
+<h2>Invocation 1 (six attributes)</h2>
+<ul>
+ <my:echoAttributes x="1" y="2" z="3" r="red" g="green" b="blue"/>
+</ul>
+<h2>Invocation 2 (zero attributes)</h2>
+<ul>
+ <my:echoAttributes/>
+</ul>
+<h2>Invocation 3 (three attributes)</h2>
+<ul>
+ <my:echoAttributes dogName="Scruffy"
+ catName="Fluffy"
+ blowfishName="Puffy"/>
+</ul>
+</body>
+</html>
+</pre></body></html>
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/misc/dynamicattrs.jsp.html
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/misc/dynamicattrs.jsp.html
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/misc/dynamicattrs.jsp.html
------------------------------------------------------------------------------
svn:mime-type = text/html
Added: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/misc/prelude.jspf.html
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/misc/prelude.jspf.html?rev=675761&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/misc/prelude.jspf.html (added)
+++ geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/misc/prelude.jspf.html Thu Jul 10 14:23:15 2008
@@ -0,0 +1,23 @@
+<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.
+-->
+<hr>
+<center>
+ This banner included with &lt;include-prelude&gt;
+</center>
+<hr>
+</pre></body></html>
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/misc/prelude.jspf.html
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/misc/prelude.jspf.html
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/misc/prelude.jspf.html
------------------------------------------------------------------------------
svn:mime-type = text/html
Added: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/simpletag/BookBean.java.html
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/simpletag/BookBean.java.html?rev=675761&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/simpletag/BookBean.java.html (added)
+++ geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/simpletag/BookBean.java.html Thu Jul 10 14:23:15 2008
@@ -0,0 +1,46 @@
+<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 BookBean {
+ private String title;
+ private String author;
+ private String isbn;
+
+ public BookBean( String title, String author, String isbn ) {
+ this.title = title;
+ this.author = author;
+ this.isbn = isbn;
+ }
+
+ public String getTitle() {
+ return this.title;
+ }
+
+ public String getAuthor() {
+ return this.author;
+ }
+
+ public String getIsbn() {
+ return this.isbn;
+ }
+
+}
+</pre></body></html>
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/simpletag/BookBean.java.html
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/simpletag/BookBean.java.html
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/simpletag/BookBean.java.html
------------------------------------------------------------------------------
svn:mime-type = text/html
Added: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/simpletag/FindBookSimpleTag.java.html
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/simpletag/FindBookSimpleTag.java.html?rev=675761&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/simpletag/FindBookSimpleTag.java.html (added)
+++ geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/simpletag/FindBookSimpleTag.java.html Thu Jul 10 14:23:15 2008
@@ -0,0 +1,46 @@
+<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 jsp2.examples.BookBean;
+
+/**
+ * SimpleTag handler that pretends to search for a book, and stores
+ * the result in a scoped variable.
+ */
+public class FindBookSimpleTag extends SimpleTagSupport {
+ private String var;
+
+ private static final String BOOK_TITLE = "The Lord of the Rings";
+ private static final String BOOK_AUTHOR = "J. R. R. Tolkein";
+ private static final String BOOK_ISBN = "0618002251";
+
+ public void doTag() throws JspException {
+ BookBean book = new BookBean( BOOK_TITLE, BOOK_AUTHOR, BOOK_ISBN );
+ getJspContext().setAttribute( this.var, book );
+ }
+
+ public void setVar( String var ) {
+ this.var = var;
+ }
+}
+</pre></body></html>
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/simpletag/FindBookSimpleTag.java.html
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/simpletag/FindBookSimpleTag.java.html
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/simpletag/FindBookSimpleTag.java.html
------------------------------------------------------------------------------
svn:mime-type = text/html
Added: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/simpletag/Functions.java.html
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/simpletag/Functions.java.html?rev=675761&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/simpletag/Functions.java.html (added)
+++ geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/simpletag/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.
+ *
+ * <p>Each function is defined as a static method.</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 < 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/simpletag/Functions.java.html
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/simpletag/Functions.java.html
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/simpletag/Functions.java.html
------------------------------------------------------------------------------
svn:mime-type = text/html
Added: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/simpletag/HelloWorldSimpleTag.java.html
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/simpletag/HelloWorldSimpleTag.java.html?rev=675761&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/simpletag/HelloWorldSimpleTag.java.html (added)
+++ geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/simpletag/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/simpletag/HelloWorldSimpleTag.java.html
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/simpletag/HelloWorldSimpleTag.java.html
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/simpletag/HelloWorldSimpleTag.java.html
------------------------------------------------------------------------------
svn:mime-type = text/html
Added: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/simpletag/RepeatSimpleTag.java.html
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/simpletag/RepeatSimpleTag.java.html?rev=675761&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/simpletag/RepeatSimpleTag.java.html (added)
+++ geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/simpletag/RepeatSimpleTag.java.html Thu Jul 10 14:23:15 2008
@@ -0,0 +1,44 @@
+<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 accepts a num attribute and
+ * invokes its body 'num' times.
+ */
+public class RepeatSimpleTag extends SimpleTagSupport {
+ private int num;
+
+ public void doTag() throws JspException, IOException {
+ for (int i=0; i<num; i++) {
+ getJspContext().setAttribute("count", String.valueOf( i + 1 ) );
+ getJspBody().invoke(null);
+ }
+ }
+
+ public void setNum(int num) {
+ this.num = num;
+ }
+}
+</pre></body></html>
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/simpletag/RepeatSimpleTag.java.html
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/simpletag/RepeatSimpleTag.java.html
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/simpletag/RepeatSimpleTag.java.html
------------------------------------------------------------------------------
svn:mime-type = text/html
Added: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/simpletag/book.jsp.html
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/simpletag/book.jsp.html?rev=675761&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/simpletag/book.jsp.html (added)
+++ geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/simpletag/book.jsp.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.
+-->
+<%@ taglib prefix="my" uri="/WEB-INF/jsp2/jsp2-example-taglib.tld" %>
+<html>
+<head>
+ <title>JSP 2.0 Examples - Book SimpleTag Handler</title>
+</head>
+<body>
+<h1>JSP 2.0 Examples - Book SimpleTag Handler</h1>
+<hr>
+<p>Illustrates a semi-realistic use of SimpleTag and the Expression
+ Language. First, a &lt;my:findBook&gt; tag is invoked to populate
+ the page context with a BookBean. Then, the books fields are printed
+ in all caps.</p>
+<br>
+<b><u>Result:</u></b><br>
+<my:findBook var="book"/>
+<table border="1">
+ <thead>
+ <td><b>Field</b></td>
+ <td><b>Value</b></td>
+ <td><b>Capitalized</b></td>
+ </thead>
+ <tr>
+ <td>Title</td>
+ <td>${book.title}</td>
+ <td>${my:caps(book.title)}</td>
+ </tr>
+ <tr>
+ <td>Author</td>
+ <td>${book.author}</td>
+ <td>${my:caps(book.author)}</td>
+ </tr>
+ <tr>
+ <td>ISBN</td>
+ <td>${book.isbn}</td>
+ <td>${my:caps(book.isbn)}</td>
+ </tr>
+</table>
+</body>
+</html>
+</pre></body></html>
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/simpletag/book.jsp.html
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/simpletag/book.jsp.html
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/simpletag/book.jsp.html
------------------------------------------------------------------------------
svn:mime-type = text/html
Added: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/simpletag/hello.jsp.html
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/simpletag/hello.jsp.html?rev=675761&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/simpletag/hello.jsp.html (added)
+++ geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/simpletag/hello.jsp.html Thu Jul 10 14:23:15 2008
@@ -0,0 +1,33 @@
+<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.
+-->
+<%@ taglib prefix="mytag" uri="/WEB-INF/jsp2/jsp2-example-taglib.tld" %>
+<html>
+<head>
+ <title>JSP 2.0 Examples - Hello World SimpleTag Handler</title>
+</head>
+<body>
+<h1>JSP 2.0 Examples - Hello World SimpleTag Handler</h1>
+<hr>
+<p>This tag handler simply echos "Hello, World!" It's an example of
+ a very basic SimpleTag handler with no body.</p>
+<br>
+<b><u>Result:</u></b>
+<mytag:helloWorld/>
+</body>
+</html>
+</pre></body></html>
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/simpletag/hello.jsp.html
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/simpletag/hello.jsp.html
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/simpletag/hello.jsp.html
------------------------------------------------------------------------------
svn:mime-type = text/html
Added: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/simpletag/repeat.jsp.html
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/simpletag/repeat.jsp.html?rev=675761&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/simpletag/repeat.jsp.html (added)
+++ geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/simpletag/repeat.jsp.html Thu Jul 10 14:23:15 2008
@@ -0,0 +1,42 @@
+<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.
+-->
+<%@ taglib prefix="mytag" uri="/WEB-INF/jsp2/jsp2-example-taglib.tld" %>
+<html>
+<head>
+ <title>JSP 2.0 Examples - Repeat SimpleTag Handler</title>
+</head>
+<body>
+<h1>JSP 2.0 Examples - Repeat SimpleTag Handler</h1>
+<hr>
+<p>This tag handler accepts a "num" parameter and repeats the body of the
+ tag "num" times. It's a simple example, but the implementation of
+ such a tag in JSP 2.0 is substantially simpler than the equivalent
+ JSP 1.2-style classic tag handler.</p>
+
+<p>The body of the tag is encapsulated in a "JSP Fragment" and passed
+ to the tag handler, which then executes it five times, inside a
+ for loop. The tag handler passes in the current invocation in a
+ scoped variable called count, which can be accessed using the EL.</p>
+<br>
+<b><u>Result:</u></b><br>
+<mytag:repeat num="5">
+ Invocation ${count} of 5<br>
+</mytag:repeat>
+</body>
+</html>
+</pre></body></html>
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/simpletag/repeat.jsp.html
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/simpletag/repeat.jsp.html
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/simpletag/repeat.jsp.html
------------------------------------------------------------------------------
svn:mime-type = text/html
Added: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/tagfiles/displayProducts.tag.html
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/tagfiles/displayProducts.tag.html?rev=675761&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/tagfiles/displayProducts.tag.html (added)
+++ geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/tagfiles/displayProducts.tag.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.
+-->
+<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
+<%@ attribute name="normalPrice" fragment="true" %>
+<%@ attribute name="onSale" fragment="true" %>
+<%@ variable name-given="name" %>
+<%@ variable name-given="price" %>
+<%@ variable name-given="origPrice" %>
+<%@ variable name-given="salePrice" %>
+
+<table border="1">
+ <tr>
+ <td>
+ <c:set var="name" value="Hand-held Color PDA"/>
+ <c:set var="price" value="$298.86"/>
+ <jsp:invoke fragment="normalPrice"/>
+ </td>
+ <td>
+ <c:set var="name" value="4-Pack 150 Watt Light Bulbs"/>
+ <c:set var="origPrice" value="$2.98"/>
+ <c:set var="salePrice" value="$2.32"/>
+ <jsp:invoke fragment="onSale"/>
+ </td>
+ <td>
+ <c:set var="name" value="Digital Cellular Phone"/>
+ <c:set var="price" value="$68.74"/>
+ <jsp:invoke fragment="normalPrice"/>
+ </td>
+ <td>
+ <c:set var="name" value="Baby Grand Piano"/>
+ <c:set var="price" value="$10,800.00"/>
+ <jsp:invoke fragment="normalPrice"/>
+ </td>
+ <td>
+ <c:set var="name" value="Luxury Car w/ Leather Seats"/>
+ <c:set var="origPrice" value="$23,980.00"/>
+ <c:set var="salePrice" value="$21,070.00"/>
+ <jsp:invoke fragment="onSale"/>
+ </td>
+ </tr>
+</table>
+</pre></body></html>
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/tagfiles/displayProducts.tag.html
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/tagfiles/displayProducts.tag.html
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/tagfiles/displayProducts.tag.html
------------------------------------------------------------------------------
svn:mime-type = text/html
Added: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/tagfiles/hello.jsp.html
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/tagfiles/hello.jsp.html?rev=675761&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/tagfiles/hello.jsp.html (added)
+++ geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/tagfiles/hello.jsp.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.
+-->
+<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
+<html>
+<head>
+ <title>JSP 2.0 Examples - Hello World Using a Tag File</title>
+</head>
+<body>
+<h1>JSP 2.0 Examples - Hello World Using a Tag File</h1>
+<hr>
+<p>This JSP page invokes a custom tag that simply echos "Hello, World!"
+ The custom tag is generated from a tag file in the /WEB-INF/tags
+ directory.</p>
+
+<p>Notice that we did not need to write a TLD for this tag. We just
+ created /WEB-INF/tags/helloWorld.tag, imported it using the taglib
+ directive, and used it!</p>
+<br>
+<b><u>Result:</u></b>
+<tags:helloWorld/>
+</body>
+</html>
+</pre></body></html>
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/tagfiles/hello.jsp.html
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/tagfiles/hello.jsp.html
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/tagfiles/hello.jsp.html
------------------------------------------------------------------------------
svn:mime-type = text/html
Added: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/tagfiles/helloWorld.tag.html
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/tagfiles/helloWorld.tag.html?rev=675761&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/tagfiles/helloWorld.tag.html (added)
+++ geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/tagfiles/helloWorld.tag.html Thu Jul 10 14:23:15 2008
@@ -0,0 +1,19 @@
+<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.
+-->
+Hello, world!
+</pre></body></html>
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/tagfiles/helloWorld.tag.html
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/tagfiles/helloWorld.tag.html
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/tagfiles/helloWorld.tag.html
------------------------------------------------------------------------------
svn:mime-type = text/html
Added: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/tagfiles/panel.jsp.html
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/tagfiles/panel.jsp.html?rev=675761&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/tagfiles/panel.jsp.html (added)
+++ geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/tagfiles/panel.jsp.html Thu Jul 10 14:23:15 2008
@@ -0,0 +1,60 @@
+<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.
+-->
+<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
+<html>
+<head>
+ <title>JSP 2.0 Examples - Panels using Tag Files</title>
+</head>
+<body>
+<h1>JSP 2.0 Examples - Panels using Tag Files</h1>
+<hr>
+<p>This JSP page invokes a custom tag that draws a
+ panel around the contents of the tag body. Normally, such a tag
+ implementation would require a Java class with many println() statements,
+ outputting HTML. Instead, we can use a .tag file as a template,
+ and we don't need to write a single line of Java or even a TLD!</p>
+<hr>
+<table border="0">
+ <tr valign="top">
+ <td>
+ <tags:panel color="#ff8080" bgcolor="#ffc0c0" title="Panel 1">
+ First panel.<br/>
+ </tags:panel>
+ </td>
+ <td>
+ <tags:panel color="#80ff80" bgcolor="#c0ffc0" title="Panel 2">
+ Second panel.<br/>
+ Second panel.<br/>
+ Second panel.<br/>
+ Second panel.<br/>
+ </tags:panel>
+ </td>
+ <td>
+ <tags:panel color="#8080ff" bgcolor="#c0c0ff" title="Panel 3">
+ Third panel.<br/>
+ <tags:panel color="#ff80ff" bgcolor="#ffc0ff" title="Inner">
+ A panel in a panel.
+ </tags:panel>
+ Third panel.<br/>
+ </tags:panel>
+ </td>
+ </tr>
+</table>
+</body>
+</html>
+</pre></body></html>
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/tagfiles/panel.jsp.html
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/tagfiles/panel.jsp.html
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/tagfiles/panel.jsp.html
------------------------------------------------------------------------------
svn:mime-type = text/html
Added: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/tagfiles/panel.tag.html
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/tagfiles/panel.tag.html?rev=675761&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/tagfiles/panel.tag.html (added)
+++ geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/tagfiles/panel.tag.html Thu Jul 10 14:23:15 2008
@@ -0,0 +1,31 @@
+<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.
+-->
+<%@ attribute name="color" %>
+<%@ attribute name="bgcolor" %>
+<%@ attribute name="title" %>
+<table border="1" bgcolor="${color}">
+ <tr>
+ <td><b>${title}</b></td>
+ </tr>
+ <tr>
+ <td bgcolor="${bgcolor}">
+ <jsp:doBody/>
+ </td>
+ </tr>
+</table>
+</pre></body></html>
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/tagfiles/panel.tag.html
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/tagfiles/panel.tag.html
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/tagfiles/panel.tag.html
------------------------------------------------------------------------------
svn:mime-type = text/html
Added: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/tagfiles/products.jsp.html
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/tagfiles/products.jsp.html?rev=675761&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/tagfiles/products.jsp.html (added)
+++ geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/tagfiles/products.jsp.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.
+-->
+<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
+<html>
+<head>
+ <title>JSP 2.0 Examples - Display Products Tag File</title>
+</head>
+<body>
+<h1>JSP 2.0 Examples - Display Products Tag File</h1>
+<hr>
+<p>This JSP page invokes a tag file that displays a listing of
+ products. The custom tag accepts two fragments that enable
+ customization of appearance. One for when the product is on sale
+ and one for normal price.</p>
+
+<p>The tag is invoked twice, using different styles</p>
+<hr>
+<h2>Products</h2>
+<tags:displayProducts>
+ <jsp:attribute name="normalPrice">
+ Item: ${name}<br/>
+ Price: ${price}
+ </jsp:attribute>
+ <jsp:attribute name="onSale">
+ Item: ${name}<br/>
+ <font color="red"><strike>Was: ${origPrice}</strike></font><br/>
+ <b>Now: ${salePrice}</b>
+ </jsp:attribute>
+</tags:displayProducts>
+<hr>
+<h2>Products (Same tag, alternate style)</h2>
+<tags:displayProducts>
+ <jsp:attribute name="normalPrice">
+ <b>${name}</b> @ ${price} ea.
+ </jsp:attribute>
+ <jsp:attribute name="onSale">
+ <b>${name}</b> @ ${salePrice} ea. (was: ${origPrice})
+ </jsp:attribute>
+</tags:displayProducts>
+</body>
+</html>
+</pre></body></html>
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/tagfiles/products.jsp.html
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/tagfiles/products.jsp.html
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/tagfiles/products.jsp.html
------------------------------------------------------------------------------
svn:mime-type = text/html
Added: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/tagfiles/xhtmlbasic.tag.html
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/tagfiles/xhtmlbasic.tag.html?rev=675761&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/tagfiles/xhtmlbasic.tag.html (added)
+++ geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/tagfiles/xhtmlbasic.tag.html Thu Jul 10 14:23:15 2008
@@ -0,0 +1,23 @@
+<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.
+-->
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.0//EN"
+"http://www.w3.org/TR/xhtml-basic/xhtml-basic10.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<jsp:doBody/>
+</html>
+</pre></body></html>
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/tagfiles/xhtmlbasic.tag.html
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/tagfiles/xhtmlbasic.tag.html
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsp2/tagfiles/xhtmlbasic.tag.html
------------------------------------------------------------------------------
svn:mime-type = text/html
Added: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsptoserv/hello.jsp.html
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsptoserv/hello.jsp.html?rev=675761&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsptoserv/hello.jsp.html (added)
+++ geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsptoserv/hello.jsp.html Thu Jul 10 14:23:15 2008
@@ -0,0 +1,28 @@
+<html><body><pre>
+<html>
+<!--
+ 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.
+-->
+<body bgcolor="white">
+
+<h1>
+ I have been invoked by
+ <% out.print(request.getAttribute("servletName").toString()); %>
+ Servlet.
+</h1>
+
+</html>
+</pre></body></html>
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsptoserv/hello.jsp.html
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsptoserv/hello.jsp.html
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsptoserv/hello.jsp.html
------------------------------------------------------------------------------
svn:mime-type = text/html
Added: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsptoserv/jsptoservlet.jsp.html
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsptoserv/jsptoservlet.jsp.html?rev=675761&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsptoserv/jsptoservlet.jsp.html (added)
+++ geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsptoserv/jsptoservlet.jsp.html Thu Jul 10 14:23:15 2008
@@ -0,0 +1,25 @@
+<html><body><pre>
+<html>
+<!--
+ 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.
+-->
+<body bgcolor="white">
+
+<!-- Forward to a servlet -->
+<jsp:forward page="/servletToJsp"/>
+
+</html>
+</pre></body></html>
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsptoserv/jsptoservlet.jsp.html
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsptoserv/jsptoservlet.jsp.html
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsptoserv/jsptoservlet.jsp.html
------------------------------------------------------------------------------
svn:mime-type = text/html
Added: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsptoserv/servletToJsp.java.html
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsptoserv/servletToJsp.java.html?rev=675761&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsptoserv/servletToJsp.java.html (added)
+++ geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsptoserv/servletToJsp.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.
+*/
+import javax.servlet.http.*;
+
+public class servletToJsp extends HttpServlet {
+
+ public void doGet (HttpServletRequest request,
+ HttpServletResponse response) {
+
+ try {
+ // Set the attribute and Forward to hello.jsp
+ request.setAttribute ("servletName", "servletToJsp");
+ getServletConfig().getServletContext().getRequestDispatcher("/jsp/jsptoserv/hello.jsp").forward(request, response);
+ } catch (Exception ex) {
+ ex.printStackTrace ();
+ }
+ }
+}
+</pre></body></html>
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsptoserv/servletToJsp.java.html
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsptoserv/servletToJsp.java.html
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/jsptoserv/servletToJsp.java.html
------------------------------------------------------------------------------
svn:mime-type = text/html
Added: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/num/numguess.jsp.html
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/num/numguess.jsp.html?rev=675761&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/num/numguess.jsp.html (added)
+++ geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/num/numguess.jsp.html Thu Jul 10 14:23:15 2008
@@ -0,0 +1,76 @@
+<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.
+
+Number Guess Game
+Written by Jason Hunter, CTO, K&A Software
+http://www.servlets.com
+-->
+
+<jsp:useBean id="numguess" class="num.NumberGuessBean" scope="session"/>
+<jsp:setProperty name="numguess" property="*"/>
+
+<html>
+<head><title>Number Guess</title></head>
+<body bgcolor="white">
+<font size=4>
+
+ <% if (numguess.getSuccess()) { %>
+
+ Congratulations! You got it.
+ And after just <%= numguess.getNumGuesses() %> tries.<p>
+
+ <% numguess.reset(); %>
+
+ Care to <a href="numguess.jsp">try again</a>?
+
+ <% } else if (numguess.getNumGuesses() == 0) { %>
+
+ Welcome to the Number Guess game.
+
+ <p>
+
+ I'm thinking of a number between 1 and 100.
+
+ <p>
+
+ <form method=get>
+ What's your guess? <input type=text name=guess>
+ <input type=submit value="Submit">
+ </form>
+
+ <% } else { %>
+
+ Good guess, but nope. Try <b><%= numguess.getHint() %>
+</b>.
+
+ You have made <%= numguess.getNumGuesses() %> guesses.<p>
+
+ I'm thinking of a number between 1 and 100.
+
+ <p>
+
+ <form method=get>
+ What's your guess? <input type=text name=guess>
+ <input type=submit value="Submit">
+ </form>
+
+ <% } %>
+
+</font>
+</body>
+</html>
+</pre></body></html>
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/num/numguess.jsp.html
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/num/numguess.jsp.html
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/num/numguess.jsp.html
------------------------------------------------------------------------------
svn:mime-type = text/html
Added: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/plugin/plugin.jsp.html
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/plugin/plugin.jsp.html?rev=675761&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/plugin/plugin.jsp.html (added)
+++ geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/plugin/plugin.jsp.html Thu Jul 10 14:23:15 2008
@@ -0,0 +1,37 @@
+<html><body><pre>
+<html>
+<!--
+ 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.
+-->
+<title> Plugin example </title>
+
+<body bgcolor="white">
+<h3> Current time is : </h3>
+<jsp:plugin type="applet" code="Clock2.class" codebase="applet" jreversion="1.2" width="160" height="150">
+ <jsp:fallback>
+ Plugin tag OBJECT or EMBED not supported by browser.
+ </jsp:fallback>
+</jsp:plugin>
+<p>
+<h4>
+ <font color=red>
+ The above applet is loaded using the Java Plugin from a jsp page using the
+ plugin tag.
+ </font>
+</h4>
+</body>
+</html>
+</pre></body></html>
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/plugin/plugin.jsp.html
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/plugin/plugin.jsp.html
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/plugin/plugin.jsp.html
------------------------------------------------------------------------------
svn:mime-type = text/html
Added: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/security/protected/error.jsp.html
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/security/protected/error.jsp.html?rev=675761&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/security/protected/error.jsp.html (added)
+++ geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/security/protected/error.jsp.html Thu Jul 10 14:23:15 2008
@@ -0,0 +1,27 @@
+<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.
+-->
+<html>
+<head>
+ <title>Error Page For Examples</title>
+</head>
+<body bgcolor="white">
+Invalid username and/or password, please try
+<a href='<%= response.encodeURL("login.jsp") %>'>again</a>.
+</body>
+</html>
+</pre></body></html>
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/security/protected/error.jsp.html
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/security/protected/error.jsp.html
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/samples/trunk/samples/jsp-examples/jsp-examples-war/src/main/webapp/security/protected/error.jsp.html
------------------------------------------------------------------------------
svn:mime-type = text/html