tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fha...@apache.org
Subject svn commit: r801476 - in /tomcat/trunk/webapps/examples/jsp/async: async1.jsp index.jsp
Date Thu, 06 Aug 2009 00:16:19 GMT
Author: fhanik
Date: Thu Aug  6 00:16:18 2009
New Revision: 801476

URL: http://svn.apache.org/viewvc?rev=801476&view=rev
Log:
Fix links

Modified:
    tomcat/trunk/webapps/examples/jsp/async/async1.jsp
    tomcat/trunk/webapps/examples/jsp/async/index.jsp

Modified: tomcat/trunk/webapps/examples/jsp/async/async1.jsp
URL: http://svn.apache.org/viewvc/tomcat/trunk/webapps/examples/jsp/async/async1.jsp?rev=801476&r1=801475&r2=801476&view=diff
==============================================================================
--- tomcat/trunk/webapps/examples/jsp/async/async1.jsp (original)
+++ tomcat/trunk/webapps/examples/jsp/async/async1.jsp Thu Aug  6 00:16:18 2009
@@ -7,4 +7,4 @@
     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

Modified: tomcat/trunk/webapps/examples/jsp/async/index.jsp
URL: http://svn.apache.org/viewvc/tomcat/trunk/webapps/examples/jsp/async/index.jsp?rev=801476&r1=801475&r2=801476&view=diff
==============================================================================
--- tomcat/trunk/webapps/examples/jsp/async/index.jsp (original)
+++ tomcat/trunk/webapps/examples/jsp/async/index.jsp Thu Aug  6 00:16:18 2009
@@ -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 @@
  - servlet does a setAsyncTimeout
  - servlet does a addAsyncListener
  - returns - waits for timeout to happen and listener invoked 
+</pre>
\ No newline at end of file



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message