[jboss-jira] [JBoss JIRA] (AS7-4935) JSP rendering via AsyncContext.dispatch returns blank page
Rossen Stoyanchev (JIRA)
jira-events at lists.jboss.org
Thu May 31 20:15:18 EDT 2012
[ https://issues.jboss.org/browse/AS7-4935?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rossen Stoyanchev updated AS7-4935:
-----------------------------------
Description:
The scenario involves:
# ServletA forwards to Servlet B
# ServletB calls request.startAsync and starts new thread
# New thread renders JSP
For the JSP rendering if asyncContext.dispatch is used I get a blank page in the browser.
However if request.getRequestDispatcher is used along with forward/include, rendering succeeds.
I didn't see any exception in standalong/log/server.log but maybe I didn't enable logging correctly.
Here you can find a project to use along with instructions:
https://github.com/rstoyanchev/dispatch-test
Beyond the bug I would like to confirm it is safe to use request.getRequestDispatcher from an async thread.
The spec doesn't say otherwise and it seems to work in AS 7.
This Servlet Spec discussion provides more detail behind this question:
http://java.net/projects/servlet-spec/lists/users/archive/2012-05/message/10
was:
The scenario involves:
# ServletA forwards to Servlet B
# ServletB calls request.startAsync and starts new thread
# New thread renders JSP
For the JSP rendering if asyncContext.dispatch("") is used I get a blank page in the browser.
However if request.getRequestDispatcher("") is used along with forward/include, rendering succeeds.
I didn't see any exception in standalong/log/server.log but maybe I didn't enable logging correctly.
Here you can find a project to use along with instructions:
https://github.com/rstoyanchev/dispatch-test
Beyond the bug I would like to confirm it is safe to use request.getRequestDispatcher from an async thread.
The spec doesn't say otherwise and it seems to work in AS 7.
This Servlet Spec discussion provides more detail behind this question:
http://java.net/projects/servlet-spec/lists/users/archive/2012-05/message/10
Apologies if I wasn't clear. I meant to refer to the respective method names but I can see that "" is confusing. I am actually passing "/WEB-INF/view.jsp".
This is [ServletA|https://github.com/rstoyanchev/dispatch-test/blob/master/src/main/java/test/ServletA.java] that dispatches to ServletB.
This is [ServletB|https://github.com/rstoyanchev/dispatch-test/blob/master/src/main/java/test/ServletB.java] that dispatches to the JSP.
> JSP rendering via AsyncContext.dispatch returns blank page
> ----------------------------------------------------------
>
> Key: AS7-4935
> URL: https://issues.jboss.org/browse/AS7-4935
> Project: Application Server 7
> Issue Type: Bug
> Components: Web
> Affects Versions: 7.1.1.Final
> Reporter: Rossen Stoyanchev
> Assignee: Remy Maucherat
>
> The scenario involves:
> # ServletA forwards to Servlet B
> # ServletB calls request.startAsync and starts new thread
> # New thread renders JSP
> For the JSP rendering if asyncContext.dispatch is used I get a blank page in the browser.
> However if request.getRequestDispatcher is used along with forward/include, rendering succeeds.
> I didn't see any exception in standalong/log/server.log but maybe I didn't enable logging correctly.
> Here you can find a project to use along with instructions:
> https://github.com/rstoyanchev/dispatch-test
> Beyond the bug I would like to confirm it is safe to use request.getRequestDispatcher from an async thread.
> The spec doesn't say otherwise and it seems to work in AS 7.
> This Servlet Spec discussion provides more detail behind this question:
> http://java.net/projects/servlet-spec/lists/users/archive/2012-05/message/10
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list