DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=29327>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=29327
ServletContext.getRequestDispatcher(path_servlet) throws Exception instead of returning null
dianne.jiao@sun.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|INVALID |
------- Additional Comments From dianne.jiao@sun.com 2004-06-01 20:10 -------
Well, to respond to William Barker's comment - BIG surprise that you didn't read
the source code before respond - to quote the more code in the third
attachement:
ses = req.getSession(true);
if (ses != null) {
ServletContext context =
getServletConfig().getServletContext().getContext(path_context);
try {
rd = context.getRequestDispatcher(path_servlet);
} catch (Exception ex) {
out.println("Unexpected Exception thrown:" + ex.toString());
}
} else {
out.println("Cannot get a HttpSession");
}
To respond to Remy's comment since I am back in here - I think this is
important to fix - crossContext maynot be always turned on for security reason.
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
|