tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Sidney-Woollett" <joh...@wardbrook.com>
Subject TC 5.0.18 RequestDespatcher bug?
Date Fri, 13 Feb 2004 10:16:50 GMT
I think that there may be a bug in TC 5.0.18 when issuing a
RequestDespatcher.forward with an URL that has the jsessionid encoded in
the URL. My setup is RH 8, JDK 1.4.2_03 + Apache 1.3.29 + mod_jk + TC
5.0.18.

I have a servlet (mapped in web.xml to /home/*) which catches all URLs
starting with "/home/". The servlet "looks" at the URL to work out which
JSP page to render by forwarding to it. The service method code is as
follows:

String fwdURL = "/en/home/welcome.jsp";

//create the request dispatcher (for the new URL)
RequestDispatcher rqdD =
request.getRequestDispatcher(response.encodeURL(fwdURL));

//and forward the request
rqdD.forward(request, response);

Here is the error produced by TC

HTTP Status 404 -
/en/home/welcome.jsp;jsessionid=35CC14009BCF7CCED835634586378F46

type Status report

message /en/home/welcome.jsp;jsessionid=35CC14009BCF7CCED835634586378F46

description The requested resource
(/en/home/welcome.jsp;jsessionid=35CC14009BCF7CCED835634586378F46) is not
available.
Apache Tomcat/5.0.18

Is this a bug, or am I doing something wrong. Maybe I should not be
encoding the forwarded URL. The bug manifests itself when switching from
an SSL to a non-SSL connection, or when cookies are turned off.

Thanks for any help.

John Sidney-Woollett

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


Mime
View raw message