You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Hans Bergsten <ha...@gefionsoftware.com> on 2001/01/21 03:12:51 UTC

Re: sendRedirect, include and forward don't work with mod_jk and non standard ssl port

Filip Hanik wrote:
> 
> Even in Ajp13 there is still a bug.
> 
> In the API docs for javax.servlet.ServletRequest.getRequestDispatcher it
> says
> "The pathname specified may be relative, although it cannot extend outside
> the current servlet context. If the path begins with a "/" it is interpreted
> as relative to the current context root. This method returns null if the
> servlet container cannot return a RequestDispatcher."
> 
> but it turns out that I can't say
> getRequestDispatcher("myhtml.html"); because it throws an array index out of
> bounds exception.
> 
> java.lang.StringIndexOutOfBoundsException: String index out of range: -1
>         at java.lang.String.substring(String.java:1503)
>         at org.apache.tomcat.util.FileUtil.catPath(FileUtil.java:109)
> [...]
> getRequestDispatcher("/myhtml.html");  works fine however.
> 
> should I file the bug report, if so where?

Yes, at this URL: <http://jakarta.apache.org/site/bugs.html>

Hans
-- 
Hans Bergsten		hans@gefionsoftware.com
Gefion Software		http://www.gefionsoftware.com
Author of JavaServer Pages (O'Reilly), http://TheJSPBook.com