Index: webapps/examples/index.html =================================================================== --- webapps/examples/index.html (revision 1524795) +++ webapps/examples/index.html (working copy) @@ -14,17 +14,17 @@ See the License for the specific language governing permissions and limitations under the License. --> - -Apache Tomcat Examples - - - -

-

Apache Tomcat Examples

-

+ + +Apache Tomcat Examples + + +

+

Apache Tomcat Examples

+

- + Index: webapps/examples/jsp/index.html =================================================================== --- webapps/examples/jsp/index.html (revision 1524795) +++ webapps/examples/jsp/index.html (working copy) @@ -1,5 +1,3 @@ - - + - - - + + JSP Examples + - -JSP -Samples + +

JSP +Samples

This is a collection of samples demonstrating the usage of different parts of the Java Server Pages (JSP) specification. Both JSP 2.0 and JSP 1.2 examples are presented below. @@ -34,340 +37,311 @@ They will not work if you are viewing these pages via a "file://..." URL.

To navigate your way through the examples, the following icons will -help: -
  - - - +help:

+ - - - - - - - - - - - - - - - - - -
Execute the example
Look at the source code for the example
Return to this screen
-

Tip: For session scoped beans to work, the cookies must be enabled. -This can be done using browser options. -
  -
-JSP 2.0 Examples
+This can be done using browser options.

+

JSP 2.0 Examples

- - - +
Expression Language
+ + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - - + + - + - + - + - + - + - + - + - + - + - - + + - + - + - + - + - + - + - + - + - + - - + + - + - + - + - + - + - + - - + + - + - + - + - + - + - + - + - + - + - + - + - +
Expression Language
Basic ArithmeticExecuteExecuteSourceSource
Basic ComparisonsExecuteExecuteSourceSource
Implicit ObjectsExecuteExecuteSourceSource
FunctionsExecuteExecuteSourceSource
Composite ExpressionsExecuteExecuteSourceSource

SimpleTag Handlers and JSP Fragments

SimpleTag Handlers and JSP Fragments
Hello World TagExecuteExecuteSourceSource
Repeat TagExecuteExecuteSourceSource
Book ExampleExecuteExecuteSourceSource

Tag Files

Tag Files
Hello World Tag FileExecuteExecuteSourceSource
Panel Tag FileExecuteExecuteSourceSource
Display Products ExampleExecuteExecuteSourceSource

New JSP XML Syntax (.jspx)

New JSP XML Syntax (.jspx)
XHTML Basic ExampleExecuteExecuteSourceSource
SVG (Scalable Vector Graphics)ExecuteExecuteSourceSource

Other JSP 2.0 Features

Other JSP 2.0 Features
<jsp:attribute> and <jsp:body>ExecuteExecuteSourceSource
Shuffle ExampleExecuteExecuteSourceSource
Attributes With Dynamic NamesExecuteExecuteSourceSource
JSP ConfigurationExecuteExecuteSourceSource
-
-JSP 1.2 Examples
- - - +

JSP 1.2 Examples

+
Numberguess 
+ + - + - + - - + + - + - + - + - + - + - - + + - + - + - - + + - + - + - - + + - + - + - - + + - + - + - - + + - + - + - - + + - + - + - - + + - + - + - - + + - + - + - - + + - + - + - + - + - + - + - + - +
NumberguessExecuteExecuteSourceSource
Date 
DateExecuteExecuteSourceSource
SnoopExecuteExecuteSourceSource
ErrorPage 
ErrorPageExecuteExecuteSourceSource
Carts 
CartsExecuteExecuteSourceSource
Checkbox 
CheckboxExecuteExecuteSourceSource
Color 
ColorExecuteExecuteSourceSource
Calendar 
CalendarExecuteExecuteSourceSource
Include 
IncludeExecuteExecuteSourceSource
Forward 
ForwardExecuteExecuteSourceSource
Plugin 
PluginExecuteExecuteSourceSource
JSP-Servlet-JSP 
JSP-Servlet-JSPExecuteExecuteSourceSource
Custom tag exampleExecuteExecuteSourceSource
XML syntax exampleExecuteExecuteSourceSource
-
-Tag Plugins
- +

Tag Plugins

+
- - - + + - - - - + + - - - - + + - @@ -374,16 +348,15 @@
If  - +
If + Execute - + + Source
ForEach  - +
ForEach + Execute - + + Source
Choose  - +
Choose + Execute - + + Source
-
-Other Examples
- +

Other Examples

+
- - - + + - +
FORM Authentication  - Execute +
FORM Authentication + Execute
Example that demonstrates protecting a resource and Index: webapps/examples/servlets/index.html =================================================================== --- webapps/examples/servlets/index.html (revision 1524795) +++ webapps/examples/servlets/index.html (working copy) @@ -14,17 +14,20 @@ See the License for the specific language governing permissions and limitations under the License. --> - - + - - - + + Servlet Examples + - -Servlet -Examples with Code + +

Servlet +Examples with Code

This is a collection of examples which demonstrate some of the more frequently used parts of the Servlet API. Familiarity with the Java(tm) Programming Language is assumed. @@ -36,80 +39,65 @@ When playing with the Cookie and Session Examples, jump back to the Headers Example to see exactly what your browser is sending the server.

To navigate your way through the examples, the following icons will -help: -
  - - - +help:

+
    +
  • Execute the example
  • +
  • Look at the source code for the example
  • + +
  • Return to this screen
  • +
- - - - - - - - - - - - - - -
Execute the example
Look at the source code for the example
Return to this screen
-

Tip: To see the cookie interactions with your browser, try turning on the "notify when setting a cookie" option in your browser preferences. This will let you see when a session is created and give some feedback -when looking at the cookie demo. -
  - - +when looking at the cookie demo.

+
+ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - +
Hello WorldExecuteExecuteSourceSource
Request InfoExecuteExecuteSourceSource
Request HeadersExecuteExecuteSourceSource
Request ParametersExecuteExecuteSourceSource
CookiesExecuteExecuteSourceSource
SessionsExecuteExecuteSourceSource
@@ -118,78 +106,78 @@ of code. Code not important to understand the example has been removed for clarity.

-Other Examples
- +

Other Examples

+
- + - - - + + - + - - - + + - + - - - + + - + - - - + + - + - - - + + - + - - - - + + - + - + - - - + + - + - - - + + - +
Servlet 3.0 Asynchronous processing examples:Servlet 3.0 Asynchronous processing examples:
async0  - Execute +
async0 + Execute
async1  - Execute +
async1 + Execute
async2  - Execute +
async2 + Execute
async3  - Execute +
async3 + Execute
stockticker  - Execute +
stockticker + Execute
Comet processing example:
- See the "Advanced IO" chapter in the User Guide for +
Comet processing example:
+ See the "Advanced IO" chapter in the User Guide for details. This example only works with the HTTP NIO or HTTP APR/native - connectors as these are the only connectors that support Comet. + connectors as these are the only connectors that support Comet.
Comet Chat  - Execute +
Comet Chat + Execute
Servlet 3.1 Non-blocking IO examplesServlet 3.1 Non-blocking IO examples
Byte counter  - Execute +
Byte counter + Execute
Number Writer  - Execute +
Number Writer + Execute
Index: webapps/examples/websocket/chat.html =================================================================== --- webapps/examples/websocket/chat.html (revision 1524795) +++ webapps/examples/websocket/chat.html (working copy) @@ -1,125 +0,0 @@ - - - - - Apache Tomcat WebSocket Examples: Chat - - - - - -
-

- -

-
-
-
-
- - \ No newline at end of file Index: webapps/examples/websocket/chat.xhtml =================================================================== --- webapps/examples/websocket/chat.xhtml (revision 0) +++ webapps/examples/websocket/chat.xhtml (working copy) @@ -0,0 +1,134 @@ + + + + + Apache Tomcat WebSocket Examples: Chat + + + + +

Seems your browser doesn't support Javascript! Websockets rely on Javascript being enabled. Please enable + Javascript and reload this page!

+
+

+ +

+
+
+
+
+ + \ No newline at end of file Property changes on: webapps/examples/websocket/chat.xhtml ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Index: webapps/examples/websocket/echo.html =================================================================== --- webapps/examples/websocket/echo.html (revision 1524795) +++ webapps/examples/websocket/echo.html (working copy) @@ -1,160 +0,0 @@ - - - - - Apache Tomcat WebSocket Examples: Echo - - - - - -
-
-
- Connect to service implemented using: - - - - -
-
- -
-
- - -
-
- -
-
- -
-
-
-
-
-
- - \ No newline at end of file Index: webapps/examples/websocket/echo.xhtml =================================================================== --- webapps/examples/websocket/echo.xhtml (revision 0) +++ webapps/examples/websocket/echo.xhtml (working copy) @@ -0,0 +1,169 @@ + + + + + Apache Tomcat WebSocket Examples: Echo + + + + +

Seems your browser doesn't support Javascript! Websockets rely on Javascript being enabled. Please enable + Javascript and reload this page!

+
+
+
+ Connect to service implemented using: + + + + +
+
+ +
+
+ + +
+
+ +
+
+ +
+
+
+
+
+
+ + \ No newline at end of file Property changes on: webapps/examples/websocket/echo.xhtml ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Index: webapps/examples/websocket/index.html =================================================================== --- webapps/examples/websocket/index.html (revision 1524795) +++ webapps/examples/websocket/index.html (working copy) @@ -1,31 +0,0 @@ - - - - - - Apache Tomcat WebSocket Examples - - -

Apache Tomcat WebSocket Examples

- - - \ No newline at end of file Index: webapps/examples/websocket/index.xhtml =================================================================== --- webapps/examples/websocket/index.xhtml (revision 0) +++ webapps/examples/websocket/index.xhtml (working copy) @@ -0,0 +1,30 @@ + + + + + Apache Tomcat WebSocket Examples + + +

Apache Tomcat WebSocket Examples

+ + + \ No newline at end of file Property changes on: webapps/examples/websocket/index.xhtml ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Index: webapps/examples/websocket/snake.html =================================================================== --- webapps/examples/websocket/snake.html (revision 1524795) +++ webapps/examples/websocket/snake.html (working copy) @@ -1,258 +0,0 @@ - - - - - - Apache Tomcat WebSocket Examples: Multiplayer Snake - - - - -
- -
-
-
-
- - - Index: webapps/examples/websocket/snake.xhtml =================================================================== --- webapps/examples/websocket/snake.xhtml (revision 0) +++ webapps/examples/websocket/snake.xhtml (working copy) @@ -0,0 +1,266 @@ + + + + + Apache Tomcat WebSocket Examples: Multiplayer Snake + + + +

Seems your browser doesn't support Javascript! Websockets rely on Javascript being enabled. Please enable + Javascript and reload this page!

+
+ +
+
+
+
+ + + Property changes on: webapps/examples/websocket/snake.xhtml ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property