ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/webapps/examples/servlets/index.html

Path
ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/webapps/examples/servlets/index.html
Status
scanned
Type
file
Name
index.html
Extension
.html
Programming language
HTML
Mime type
text/html
File type
HTML document, ASCII text, with CRLF line terminators
Tag

      
    
Rootfs path

      
    
Size
6461 (6.3 KB)
MD5
539ba43901931c3bbcfff31183e543f0
SHA1
82813d08cf0b82e32cbab49c8c8b0adf74dbe2b6
SHA256
3b02ef46c35fad83b99217b5b2fbbd7906d211580b5edb84348a092b8d3ce174
SHA512

      
    
SHA1_git
4dc20dcd98f1816f75485e45d12eff3376c83b5a
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
index.html | 6.3 KB |

<!-- 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><html lang="en"> <head> <meta charset="UTF-8" /> <title>Servlet Examples</title> <style type="text/css"> img { border: 0; } th { text-align: left; } tr { vertical-align: top; } </style> </head> <body> <h1>Servlet Examples with Code</h1> <p>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. <p>These examples will only work when viewed via an http URL. They will not work if you are viewing these pages via a "file://..." URL. Please refer to the <i>README</i> file provide with this Tomcat release regarding how to configure and start the provided web server. <p>Wherever you see a form, enter some data and see how the servlet reacts. When playing with the Cookie and Session Examples, jump back to the Headers Example to see exactly what your browser is sending the server. <p>To navigate your way through the examples, the following icons will help:</p> <ul style="list-style-type: none; padding-left: 0;"> <li><img src="images/execute.gif" alt=""> Execute the example</li> <li><img src="images/code.gif" alt=""> Look at the source code for the example</li> <li><img src="images/return.gif" alt=""> Return to this screen</li> </ul> <p>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.</p> <table style="width: 85%;" > <tr> <td>Hello World</td> <td style="width: 30%;"><a href="servlet/HelloWorldExample"><img SRC="images/execute.gif" alt=""></a><a href="servlet/HelloWorldExample">Execute</a></td> <td style="width: 30%;"><a href="helloworld.html"><img SRC="images/code.gif" alt=""></a><a href="helloworld.html">Source</a></td> </tr> <tr> <td>Request Info</td> <td style="width: 30%;"><a href="servlet/RequestInfoExample"><img SRC="images/execute.gif" alt=""></a><a href="servlet/RequestInfoExample">Execute</a></td> <td style="width: 30%;"><a href="reqinfo.html"><img SRC="images/code.gif" alt=""></a><a href="reqinfo.html">Source</a></td> </tr> <tr> <td>Request Headers</td> <td style="width: 30%;"><a href="servlet/RequestHeaderExample"><img SRC="images/execute.gif" alt=""></a><a href="servlet/RequestHeaderExample">Execute</a></td> <td style="width: 30%;"><a href="reqheaders.html"><img SRC="images/code.gif" alt=""></a><a href="reqheaders.html">Source</a></td> </tr> <tr> <td>Request Parameters</td> <td style="width: 30%;"><a href="servlet/RequestParamExample"><img SRC="images/execute.gif" alt=""></a><a href="servlet/RequestParamExample">Execute</a></td> <td style="width: 30%;"><a href="reqparams.html"><img SRC="images/code.gif" alt=""></a><a href="reqparams.html">Source</a></td> </tr> <tr> <td>Cookies</td> <td style="width: 30%;"><a href="servlet/CookieExample"><img SRC="images/execute.gif" alt=""></a><a href="servlet/CookieExample">Execute</a></td> <td style="width: 30%;"><a href="cookies.html"><img SRC="images/code.gif" alt=""></a><a href="cookies.html">Source</a></td> </tr> <tr> <td>Sessions</td> <td style="width: 30%;"><a href="servlet/SessionExample"><img SRC="images/execute.gif" alt=""></a><a href="servlet/SessionExample">Execute</a></td> <td style="width: 30%;"><a href="sessions.html"><img SRC="images/code.gif" alt=""></a><a href="sessions.html">Source</a></td> </tr> </table> <p>Note: The source code for these examples does not contain all of the source code that is actually in the example, only the important sections of code. Code not important to understand the example has been removed for clarity.</p> <h2>Other Examples</h2> <table style="width: 85%;" > <tr> <th colspan="3">Servlet 3.0 Asynchronous processing examples:</th> </tr> <tr> <td>async0</td> <td style="width: 30%;"> <a href="../async/async0"><img SRC="images/execute.gif" alt=""> Execute</a> </td> <td style="width: 30%;"></td> </tr> <tr> <td>async1</td> <td style="width: 30%;"> <a href="../async/async1"><img SRC="images/execute.gif" alt=""> Execute</a> </td> <td style="width: 30%;"></td> </tr> <tr> <td>async2</td> <td style="width: 30%;"> <a href="../async/async2"><img SRC="images/execute.gif" alt=""> Execute</a> </td> <td style="width: 30%;"></td> </tr> <tr> <td>async3</td> <td style="width: 30%;"> <a href="../async/async3"><img SRC="images/execute.gif" alt=""> Execute</a> </td> <td style="width: 30%;"></td> </tr> <tr> <td>stockticker</td> <td style="width: 30%;"> <a href="../async/stockticker"><img SRC="images/execute.gif" alt=""> Execute</a> </td> <td style="width: 30%;"></td> </tr> <tr> <th colspan="3">Servlet 3.1 Non-blocking IO examples</th> </tr> <tr> <td>Byte counter</td> <td style="width: 30%;"> <a href="nonblocking/bytecounter.html"><img src="images/execute.gif" alt=""> Execute</a> </td> <td style="width: 30%;"></td> </tr> <tr> <td>Number Writer</td> <td style="width: 30%;"> <a href="nonblocking/numberwriter"><img src="images/execute.gif" alt=""> Execute</a> </td> <td style="width: 30%;"></td> </tr> <tr> <th colspan="3">Servlet 4.0 Trailer Field examples</th> </tr> <tr> <td>Response trailer fields</td> <td style="width: 30%;"> <a href="trailers/response"><img src="images/execute.gif" alt=""> Execute</a> </td> <td style="width: 30%;"></td> </tr> </table> </body> </html>
Detected license expression
apache-2.0
Detected license expression (SPDX)
Apache-2.0
Percentage of license text
18.51
Copyrights

      
    
Holders

      
    
Authors

      
    
License detections License expression License expression SPDX
apache_2_0-4bde3f57-78aa-4201-96bf-531cba09e7de apache-2.0 Apache-2.0
URL Start line End line
http://www.apache.org/licenses/LICENSE-2.0 9 9