tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ana von Klopp Lemon <Ana.Von.Kl...@eng.sun.com>
Subject Unexpected behaviour of RequestInterceptor with forwarding
Date Fri, 14 Jul 2000 22:40:15 GMT

Hi, 

I noticed some unexpected behaviour from a RequestInterceptor when the 
request is for a JSP which contains a directive to forward to another
JSP.  
	<jsp:forward page="SimpleJSP.jsp" />

For this type of request, the preService() method is invoked but the
postService() is not.

Also, if you use

	<jsp:forward page="SimpleJSP.jsp?numtimes=4" />

then the parameters are forwarded but the querystring is not, so a
request interceptor handling the request for SimpleJSP.jsp?numtimes=4
would do the following

    public int preService(Request request, Response response) { 
        request.getQueryString(); -> returns null
        request.getParameterNames(); -> returns enumeration consisting 
				        of "numtimes"

Ana


Mime
View raw message