geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lin...@apache.org
Subject svn commit: r675728 [3/3] - in /geronimo/samples/branches/2.1/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/tagfil...
Date Thu, 10 Jul 2008 20:55:21 GMT
Added: geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/plugin/plugin.jsp.html
URL: http://svn.apache.org/viewvc/geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/plugin/plugin.jsp.html?rev=675728&view=auto
==============================================================================
--- geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/plugin/plugin.jsp.html
(added)
+++ geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/plugin/plugin.jsp.html
Thu Jul 10 13:55:19 2008
@@ -0,0 +1,37 @@
+<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;title> Plugin example &lt;/title>
+
+&lt;body bgcolor="white">
+&lt;h3> Current time is : &lt;/h3>
+&lt;jsp:plugin type="applet" code="Clock2.class" codebase="applet" jreversion="1.2" width="160"
height="150">
+    &lt;jsp:fallback>
+        Plugin tag OBJECT or EMBED not supported by browser.
+    &lt;/jsp:fallback>
+&lt;/jsp:plugin>
+&lt;p>
+&lt;h4>
+    &lt;font color=red>
+        The above applet is loaded using the Java Plugin from a jsp page using the
+        plugin tag.
+    &lt;/font>
+&lt;/h4>
+&lt;/body>
+&lt;/html>
+</pre></body></html>

Propchange: geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/plugin/plugin.jsp.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/plugin/plugin.jsp.html
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/plugin/plugin.jsp.html
------------------------------------------------------------------------------
    svn:mime-type = text/html

Added: geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/security/protected/error.jsp.html
URL: http://svn.apache.org/viewvc/geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/security/protected/error.jsp.html?rev=675728&view=auto
==============================================================================
--- geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/security/protected/error.jsp.html
(added)
+++ geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/security/protected/error.jsp.html
Thu Jul 10 13:55:19 2008
@@ -0,0 +1,27 @@
+<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>Error Page For Examples&lt;/title>
+&lt;/head>
+&lt;body bgcolor="white">
+Invalid username and/or password, please try
+&lt;a href='&lt;%= response.encodeURL("login.jsp") %>'>again&lt;/a>.
+&lt;/body>
+&lt;/html>
+</pre></body></html>

Propchange: geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/security/protected/error.jsp.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/security/protected/error.jsp.html
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/security/protected/error.jsp.html
------------------------------------------------------------------------------
    svn:mime-type = text/html

Added: geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/security/protected/index.jsp.html
URL: http://svn.apache.org/viewvc/geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/security/protected/index.jsp.html?rev=675728&view=auto
==============================================================================
--- geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/security/protected/index.jsp.html
(added)
+++ geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/security/protected/index.jsp.html
Thu Jul 10 13:55:19 2008
@@ -0,0 +1,86 @@
+<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;%
+    if (request.getParameter("logoff") != null) {
+        session.invalidate();
+        response.sendRedirect("index.jsp");
+        return;
+    }
+%>
+&lt;html>
+&lt;head>
+    &lt;title>Protected Page for Examples&lt;/title>
+&lt;/head>
+&lt;body bgcolor="white">
+
+You are logged in as remote user &lt;b>&lt;%= request.getRemoteUser() %>
+&lt;/b>
+in session &lt;b>&lt;%= session.getId() %>
+&lt;/b>&lt;br>&lt;br>
+
+&lt;%
+    if (request.getUserPrincipal() != null) {
+%>
+Your user principal name is
+&lt;b>&lt;%= request.getUserPrincipal().getName() %>
+&lt;/b>&lt;br>&lt;br>
+&lt;%
+} else {
+%>
+No user principal could be identified.&lt;br>&lt;br>
+&lt;%
+    }
+%>
+
+&lt;%
+    String role = request.getParameter("role");
+    if (role == null)
+        role = "";
+    if (role.length() > 0) {
+        if (request.isUserInRole(role)) {
+%>
+You have been granted role
+&lt;b>&lt;%= util.HTMLFilter.filter(role) %>
+&lt;/b>&lt;br>&lt;br>
+&lt;%
+} else {
+%>
+You have &lt;i>not&lt;/i> been granted role
+&lt;b>&lt;%= util.HTMLFilter.filter(role) %>
+&lt;/b>&lt;br>&lt;br>
+&lt;%
+        }
+    }
+%>
+
+To check whether your username has been granted a particular role,
+enter it here:
+&lt;form method="GET" action='&lt;%= response.encodeURL("index.jsp") %>'>
+    &lt;input type="text" name="role" value="&lt;%= util.HTMLFilter.filter(role)
%>">
+&lt;/form>
+&lt;br>&lt;br>
+
+If you have configured this app for form-based authentication, you can log
+off by clicking
+&lt;a href='&lt;%= response.encodeURL("index.jsp?logoff=true") %>'>here&lt;/a>.
+This should cause you to be returned to the logon page after the redirect
+that is performed.
+
+&lt;/body>
+&lt;/html>
+</pre></body></html>

Propchange: geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/security/protected/index.jsp.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/security/protected/index.jsp.html
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/security/protected/index.jsp.html
------------------------------------------------------------------------------
    svn:mime-type = text/html

Added: geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/security/protected/login.jsp.html
URL: http://svn.apache.org/viewvc/geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/security/protected/login.jsp.html?rev=675728&view=auto
==============================================================================
--- geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/security/protected/login.jsp.html
(added)
+++ geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/security/protected/login.jsp.html
Thu Jul 10 13:55:19 2008
@@ -0,0 +1,40 @@
+<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>Login Page for Examples&lt;/title>
+&lt;body bgcolor="white">
+&lt;form method="POST" action='&lt;%= response.encodeURL("j_security_check") %>'>
+    &lt;table border="0" cellspacing="5">
+        &lt;tr>
+            &lt;th align="right">Username:&lt;/th>
+            &lt;td align="left">&lt;input type="text" name="j_username">&lt;/td>
+        &lt;/tr>
+        &lt;tr>
+            &lt;th align="right">Password:&lt;/th>
+            &lt;td align="left">&lt;input type="password" name="j_password">&lt;/td>
+        &lt;/tr>
+        &lt;tr>
+            &lt;td align="right">&lt;input type="submit" value="Log In">&lt;/td>
+            &lt;td align="left">&lt;input type="reset">&lt;/td>
+        &lt;/tr>
+    &lt;/table>
+&lt;/form>
+&lt;/body>
+&lt;/html>
+</pre></body></html>

Propchange: geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/security/protected/login.jsp.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/security/protected/login.jsp.html
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/security/protected/login.jsp.html
------------------------------------------------------------------------------
    svn:mime-type = text/html

Added: geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/sessions/carts.jsp.html
URL: http://svn.apache.org/viewvc/geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/sessions/carts.jsp.html?rev=675728&view=auto
==============================================================================
--- geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/sessions/carts.jsp.html
(added)
+++ geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/sessions/carts.jsp.html
Thu Jul 10 13:55:19 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;jsp:useBean id="cart" scope="session" class="sessions.DummyCart"/>
+
+&lt;jsp:setProperty name="cart" property="*"/>
+&lt;%
+    cart.processRequest(request);
+%>
+
+
+&lt;FONT size=5 COLOR="#CC0000">
+    &lt;br> You have the following items in your cart:
+    &lt;ol>
+        &lt;%
+            String[] items = cart.getItems();
+            for (int i = 0; i &lt; items.length; i++) {
+        %>
+        &lt;li> &lt;% out.print(util.HTMLFilter.filter(items[i])); %>
+            &lt;%
+
+                    }
+
+            %>
+    &lt;/ol>
+
+&lt;/FONT>
+
+&lt;hr>
+&lt;%@ include file="/sessions/carts.html" %>
+&lt;/html>
+</pre></body></html>

Propchange: geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/sessions/carts.jsp.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/sessions/carts.jsp.html
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/sessions/carts.jsp.html
------------------------------------------------------------------------------
    svn:mime-type = text/html

Added: geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/simpletag/foo.jsp.html
URL: http://svn.apache.org/viewvc/geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/simpletag/foo.jsp.html?rev=675728&view=auto
==============================================================================
--- geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/simpletag/foo.jsp.html
(added)
+++ geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/simpletag/foo.jsp.html
Thu Jul 10 13:55:19 2008
@@ -0,0 +1,41 @@
+<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>
+&lt;%@ taglib uri="http://jakarta.apache.org/tomcat/examples-taglib" prefix="eg" %>
+
+Radio stations that rock:
+
+&lt;ul>
+    &lt;eg:foo att1="98.5" att2="92.3" att3="107.7">
+        &lt;li>&lt;%= member %>
+        &lt;/li>
+    &lt;/eg:foo>
+&lt;/ul>
+
+&lt;eg:log>
+    Did you see me on the stderr window?
+&lt;/eg:log>
+
+&lt;eg:log toBrowser="true">
+    Did you see me on the browser window as well?
+&lt;/eg:log>
+
+&lt;/body>
+&lt;/html>
+</pre></body></html>

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

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

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

Added: geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/snp/snoop.jsp.html
URL: http://svn.apache.org/viewvc/geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/snp/snoop.jsp.html?rev=675728&view=auto
==============================================================================
--- geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/snp/snoop.jsp.html
(added)
+++ geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/snp/snoop.jsp.html
Thu Jul 10 13:55:19 2008
@@ -0,0 +1,58 @@
+<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;h1> Request Information &lt;/h1>
+&lt;font size="4">
+    JSP Request Method: &lt;% out.print(util.HTMLFilter.filter(request.getMethod()));
%>
+    &lt;br>
+    Request URI: &lt;%= request.getRequestURI() %>
+    &lt;br>
+    Request Protocol: &lt;%= request.getProtocol() %>
+    &lt;br>
+    Servlet path: &lt;%= request.getServletPath() %>
+    &lt;br>
+    Path info: &lt;% out.print(util.HTMLFilter.filter(request.getPathInfo())); %>
+    &lt;br>
+    Query string: &lt;% out.print(util.HTMLFilter.filter(request.getQueryString()));
%>
+    &lt;br>
+    Content length: &lt;%= request.getContentLength() %>
+    &lt;br>
+    Content type: &lt;% out.print(util.HTMLFilter.filter(request.getContentType()));
%>
+    &lt;br>
+    Server name: &lt;%= request.getServerName() %>
+    &lt;br>
+    Server port: &lt;%= request.getServerPort() %>
+    &lt;br>
+    Remote user: &lt;%= request.getRemoteUser() %>
+    &lt;br>
+    Remote address: &lt;%= request.getRemoteAddr() %>
+    &lt;br>
+    Remote host: &lt;%= request.getRemoteHost() %>
+    &lt;br>
+    Authorization scheme: &lt;%= request.getAuthType() %>
+    &lt;br>
+    Locale: &lt;%= request.getLocale() %>
+    &lt;hr>
+    The browser you are using is &lt;% out.print(util.HTMLFilter.filter(request.getHeader("User-Agent")));
%>
+    &lt;hr>
+&lt;/font>
+&lt;/body>
+&lt;/html>
+</pre></body></html>

Propchange: geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/snp/snoop.jsp.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/snp/snoop.jsp.html
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/snp/snoop.jsp.html
------------------------------------------------------------------------------
    svn:mime-type = text/html

Added: geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/source.jsp.html
URL: http://svn.apache.org/viewvc/geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/source.jsp.html?rev=675728&view=auto
==============================================================================
--- geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/source.jsp.html
(added)
+++ geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/source.jsp.html
Thu Jul 10 13:55:19 2008
@@ -0,0 +1,22 @@
+<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 uri="http://jakarta.apache.org/tomcat/examples-taglib"
+           prefix="eg" %>
+
+&lt;eg:ShowSource jspFile="&lt;%= request.getQueryString() %>"/>
+</pre></body></html>

Propchange: geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/source.jsp.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/source.jsp.html
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/source.jsp.html
------------------------------------------------------------------------------
    svn:mime-type = text/html

Added: geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/tagplugin/choose.jsp.html
URL: http://svn.apache.org/viewvc/geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/tagplugin/choose.jsp.html?rev=675728&view=auto
==============================================================================
--- geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/tagplugin/choose.jsp.html
(added)
+++ geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/tagplugin/choose.jsp.html
Thu Jul 10 13:55:19 2008
@@ -0,0 +1,60 @@
+<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>Tag Examples - choose&lt;/title>
+&lt;/head>
+&lt;body>
+&lt;h1>Tag Plugin Examples - &amp;lt;c:choose>&lt;/h1>
+
+&lt;hr>
+&lt;/br>
+&lt;a href="notes.html">Plugin Introductory Notes&lt;font &lt;font color="#0000FF">&lt;/
+    a>
+    &lt;br/>
+    &lt;a href="howto.html">Brief Instructions for Writing Plugins&lt;font color="#000
+0
+FF">&lt;/a>
+    &lt;br/> &lt;br/>
+    &lt;hr>
+
+    &lt;font color="#000000"/>
+    &lt;/br>
+
+    &lt;%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
+
+    &lt;c:forEach var="index" begin="0" end="4">
+    # ${index}:
+    &lt;c:choose>
+    &lt;c:when test="${index == 1}">
+    One!&lt;/br>
+    &lt;/c:when>
+    &lt;c:when test="${index == 4}">
+    Four!&lt;/br>
+    &lt;/c:when>
+    &lt;c:when test="${index == 3}">
+    Three!&lt;/br>
+    &lt;/c:when>
+    &lt;c:otherwise>
+    Huh?&lt;/br>
+    &lt;/c:otherwise>
+    &lt;/c:choose>
+    &lt;/c:forEach>
+&lt;/body>
+&lt;/html> 
+</pre></body></html>

Propchange: geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/tagplugin/choose.jsp.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/tagplugin/choose.jsp.html
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/tagplugin/choose.jsp.html
------------------------------------------------------------------------------
    svn:mime-type = text/html

Added: geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/tagplugin/foreach.jsp.html
URL: http://svn.apache.org/viewvc/geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/tagplugin/foreach.jsp.html?rev=675728&view=auto
==============================================================================
--- geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/tagplugin/foreach.jsp.html
(added)
+++ geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/tagplugin/foreach.jsp.html
Thu Jul 10 13:55:19 2008
@@ -0,0 +1,61 @@
+<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>Tag Plugin Examples: forEach&lt;/title>
+&lt;/head>
+&lt;body>
+&lt;h1>Tag Plugin Examples - &amp;lt;c:forEach>&lt;/h1>
+
+&lt;hr>
+&lt;/br>
+&lt;a href="notes.html">Plugin Introductory Notes&lt;font &lt;font color="#0000FF">&lt;/
+    a>
+    &lt;br/>
+    &lt;a href="howto.html">Brief Instructions for Writing Plugins&lt;font color="#0000
+FF">&lt;/a>
+    &lt;br/> &lt;br/>
+    &lt;hr>
+
+    &lt;font color="#000000"/>
+    &lt;/br>
+
+    &lt;%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
+    &lt;%@ page import="java.util.Vector" %>
+
+    &lt;h3>Iterating over a range&lt;/h3>
+    &lt;c:forEach var="item" begin="1" end="10">
+        ${item}
+    &lt;/c:forEach>
+
+    &lt;%
+    Vector v = new Vector();
+        v.add("One"); v.add("Two"); v.add("Three"); v.add("Four");
+
+        pageContext.setAttribute("vector", v);
+
+    %>
+
+    &lt;h3>Iterating over a Vector&lt;/h3>
+
+    &lt;c:forEach items="${vector}" var="item">
+        ${item}
+    &lt;/c:forEach>
+&lt;/body>
+&lt;/html> 
+</pre></body></html>

Propchange: geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/tagplugin/foreach.jsp.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/tagplugin/foreach.jsp.html
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/tagplugin/foreach.jsp.html
------------------------------------------------------------------------------
    svn:mime-type = text/html

Added: geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/tagplugin/if.jsp.html
URL: http://svn.apache.org/viewvc/geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/tagplugin/if.jsp.html?rev=675728&view=auto
==============================================================================
--- geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/tagplugin/if.jsp.html
(added)
+++ geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/tagplugin/if.jsp.html
Thu Jul 10 13:55:19 2008
@@ -0,0 +1,47 @@
+<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>Tag Plugin Examples: if&lt;/title>
+&lt;/head>
+&lt;body>
+&lt;h1>Tag Plugin Examples - &amp;lt;c:if>&lt;/h1>
+
+&lt;hr>
+&lt;/br>
+&lt;a href="notes.html">Plugin Introductory Notes&lt;font &lt;font color="#0000FF">&lt;/a>
+&lt;br/>
+&lt;a href="howto.html">Brief Instructions for Wrieting Plugins&lt;font color="#0000FF">&lt;/a>
+&lt;br/> &lt;br/>
+&lt;hr>
+
+&lt;font color="#000000"/>
+&lt;/br>
+&lt;%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
+
+&lt;h3>Set the test result to a variable&lt;/h3>
+&lt;c:if test="${1==1}" var="theTruth" scope="session"/>
+The result of testing for (1==1) is: ${theTruth}
+
+&lt;h3>Conditionally execute the body&lt;/h3>
+&lt;c:if test="${2>0}">
+    It's true that (2>0)!
+&lt;/c:if>
+&lt;/body>
+&lt;/html> 
+</pre></body></html>

Propchange: geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/tagplugin/if.jsp.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/tagplugin/if.jsp.html
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/tagplugin/if.jsp.html
------------------------------------------------------------------------------
    svn:mime-type = text/html

Added: geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/xml/xml.jsp.html
URL: http://svn.apache.org/viewvc/geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/xml/xml.jsp.html?rev=675728&view=auto
==============================================================================
--- geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/xml/xml.jsp.html
(added)
+++ geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/xml/xml.jsp.html
Thu Jul 10 13:55:19 2008
@@ -0,0 +1,74 @@
+<html><body><pre>
+&lt;?xml version="1.0"?>
+&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:root xmlns:jsp="http://java.sun.com/JSP/Page"
+          version="1.2">
+    &lt;jsp:directive.page contentType="text/html"/>
+
+    &lt;jsp:declaration>
+
+          String getDateTimeStr(Locale l) {
+            DateFormat df = SimpleDateFormat.getDateTimeInstance(DateFormat.MEDIUM, DateFormat.MEDIUM,
l);
+            return df.format(new Date());
+          }
+
+    &lt;/jsp:declaration>
+
+    &lt;html>
+    &lt;head>
+        &lt;title>Example JSP in XML format&lt;/title>
+    &lt;/head>
+
+    &lt;body>
+    This is the output of a simple JSP using XML format.
+    &lt;br/>
+
+    &lt;div>Use a jsp:scriptlet to loop from 1 to 10:&lt;/div>
+    &lt;jsp:scriptlet>
+
+        // Note we need to declare CDATA because we don't escape the less than symbol
+        &lt;![CDATA[
+          for (int i = 1; i&lt;=10; i++) {
+            out.println(i);
+            if (i &lt; 10) {
+              out.println(", ");
+            }
+          }
+        ]]>
+
+    &lt;/jsp:scriptlet>
+
+    &lt;!-- Because I omit br's end tag, declare it as CDATA -->
+    &lt;![CDATA[
+    &lt;br>&lt;br>
+    ]]>
+
+    &lt;div align="left">
+        Use a jsp:expression to write the date and time in the browser's locale:
+        &lt;jsp:expression>getDateTimeStr(request.getLocale())&lt;/jsp:expression>
+    &lt;/div>
+
+
+    &lt;jsp:text>
+        &amp;lt;p&amp;gt;This sentence is enclosed in a jsp:text element.&amp;lt;/p&amp;gt;
+    &lt;/jsp:text>
+
+    &lt;/body>
+    &lt;/html>
+&lt;/jsp:root>
+</pre></body></html>

Propchange: geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/xml/xml.jsp.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/xml/xml.jsp.html
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/branches/2.1/samples/jsp-examples/jsp-examples-war/src/main/webapp/xml/xml.jsp.html
------------------------------------------------------------------------------
    svn:mime-type = text/html



Mime
View raw message