Fix links
authorfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 6 Aug 2009 00:16:18 +0000 (00:16 +0000)
committerfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 6 Aug 2009 00:16:18 +0000 (00:16 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@801476 13f79535-47bb-0310-9956-ffa450edef68

webapps/examples/jsp/async/async1.jsp
webapps/examples/jsp/async/index.jsp

index ab3fd22..5028f3a 100644 (file)
@@ -7,4 +7,4 @@ System.out.println("Inside Async 1");
     request.getAsyncContext().complete();
   }
 %>
-Completed async request at <%=new java.sql.Date()%>
\ No newline at end of file
+Completed async request at <%=new java.sql.Date(System.currentTimeMillis())%>
\ No newline at end of file
index 16ab8e8..f79321a 100644 (file)
@@ -1,17 +1,17 @@
 <%@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>
  <a href="<%=response.encodeURL("/examples/async/async1")%>"> Async 1 </a>
  
 3. Timeout s1
  - servlet does a startAsync()
@@ -23,3 +23,4 @@ Use cases:
  - servlet does a setAsyncTimeout
  - servlet does a addAsyncListener
  - returns - waits for timeout to happen and listener invoked 
+</pre>
\ No newline at end of file