tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Terry Alexis Lurie <>
Subject Erroneous Chained JSP Ordering with getRequestDispatcher
Date Thu, 27 Jun 2002 18:26:23 GMT
Hi, if in a servlet called FROM a JSP via a taglib, the servlet then 
passes the control to anothr JSP, the latter JSP is output first. Note 
that output from the servlet IS correctly placed.

Initial JSP:
<%@ taglib uri="Common" prefix="common" %>
<html><body><common:FormDay /></body></html>

Say, in the Common servlet there is:

request.getRequestDispatcher("/secondary.jsp").include(request, response);

and secondary.jsp is:


Then the output will be:


See how the secondary.jsp has been popped off the JSP stack first, yet 
the servlet code is correctly positioned?

I trawled the archives, and there was a similar report back in 2001.


Subject:  Order of execution - JSP/RequestDispatcher include problem
Date:  Wed, 5 Dec 2001 14:20:02 -0600

No answer though.

Any thoughts?

Terry Alexis Lurie
Software Engineer
Weboutcome Ltd.

t: +44 (0)20 7953 7457
f: +44 (0)7092 123 230
m: +44 (0)7980 768 142
Unit 302, The Chandlery
50 Westminster Bridge Road
London SE1 7QY

***This email and any files transmitted with it are confidential and 
intended solely for the use of the individual or entity to whom they are 
addressed. If you receive this message in error, please return it to the

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message