ASF Bugzilla – Attachment 27031 Details for
Bug 51229
Some async examples are not work correctly
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for async examples
sample.diff (text/plain), 1.39 KB, created by
Eiji Takahashi
on 2011-05-19 06:55:54 UTC
(
hide
)
Description:
patch for async examples
Filename:
MIME Type:
Creator:
Eiji Takahashi
Created:
2011-05-19 06:55:54 UTC
Size:
1.39 KB
patch
obsolete
>Index: webapps/examples/WEB-INF/classes/async/Async0.java >=================================================================== >--- webapps/examples/WEB-INF/classes/async/Async0.java (revision 1103594) >+++ webapps/examples/WEB-INF/classes/async/Async0.java (working copy) >@@ -37,9 +37,9 @@ > protected void service(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException { > if (Boolean.TRUE == req.getAttribute("dispatch")) { > log.info("Received dispatch, completing on the worker thread."); >- req.getAsyncContext().complete(); > log.info("After complete called started:"+req.isAsyncStarted()); > resp.getWriter().write("Async dispatch worked:+"+System.currentTimeMillis()+"\n"); >+ req.getAsyncContext().complete(); > } else { > resp.setContentType("text/plain"); > final AsyncContext actx = req.startAsync(); >Index: webapps/examples/jsp/async/index.jsp >=================================================================== >--- webapps/examples/jsp/async/index.jsp (revision 1103594) >+++ webapps/examples/jsp/async/index.jsp (working copy) >@@ -65,5 +65,5 @@ > > > 7. Stock ticker >- <a href="<%=response.encodeURL("/examples/async/stock")%>"> StockTicker </a> >-</pre> >\ No newline at end of file >+ <a href="<%=response.encodeURL("/examples/async/stockticker")%>"> StockTicker </a> >+</pre>
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 51229
: 27031