tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 29327] - ServletContext.getRequestDispatcher(path_servlet) throws Exception instead of returning null
Date Tue, 01 Jun 2004 20:18:26 GMT
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





------- Additional Comments From bsouther@fwdco.com  2004-06-01 20:18 -------
If crossContext is false then "getContext(path_context)" would return null.

If context is null then trying to call one of it's methods will always yield a
NullPointerException.
 rd = context.getRequestDispatcher(path_servlet);

IOW: There is no context to respond to the "getRequestDispatcher" call.

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


Mime
View raw message