ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/webapps/examples/jsp/async/index.jsp

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

      
    
Rootfs path

      
    
Size
2484 (2.4 KB)
MD5
a0edaff86689a357162725583221d41e
SHA1
55ef67eef3fb38ee621ebc9f09c94acf066c31a5
SHA256
eaf3b406bf3ff7d1982faec29439c83dbc3b6d997ea51658b5cc093fa29eb963
SHA512

      
    
SHA1_git
28af9acd9a611114cc6dc38fb601858c1d9a2ef6
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
index.jsp | 2.4 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. --%> <%@page session="false"%> <pre> Use cases: 1. Simple dispatch - servlet does startAsync() - background thread calls ctx.dispatch() <a href="<%=response.encodeURL("/examples/async/async0")%>"> Async 0 </a> 2. Simple dispatch - servlet does startAsync() - background thread calls dispatch(/path/to/jsp) <a href="<%=response.encodeURL("/examples/async/async1")%>"> Async 1 </a> 3. Simple dispatch - servlet does startAsync() - background thread calls writes and calls complete() <a href="<%=response.encodeURL("/examples/async/async2")%>"> Async 2 </a> 4. Simple dispatch - servlet does a startAsync() - servlet calls dispatch(/path/to/jsp) - servlet calls complete() <a href="<%=response.encodeURL("/examples/async/async3")%>"> Async 3 </a> 3. Timeout s1 - servlet does a startAsync() - servlet does a setAsyncTimeout - returns - waits for timeout to happen should return error page 4. Timeout s2 - servlet does a startAsync() - servlet does a setAsyncTimeout - servlet does a addAsyncListener - returns - waits for timeout to happen and listener invoked 5. Dispatch to asyncSupported=false servlet - servlet1 does a startAsync() - servlet1 dispatches to dispatch(/servlet2) - the container calls complete() after servlet2 is complete - TODO 6. Chained dispatch - servlet1 does a startAsync - servlet1 does a dispatch to servlet2 (asyncsupported=true) - servlet2 does a dispatch to servlet3 (asyncsupported=true) - servlet3 does a dispatch to servlet4 (asyncsupported=false) 7. Stock ticker <a href="<%=response.encodeURL("/examples/async/stockticker")%>"> StockTicker </a> </pre>
Detected license expression
apache-2.0
Detected license expression (SPDX)
Apache-2.0
Percentage of license text
39.27
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