Re: Tomcat configuration question

From: DaiIchi (daiichi_at_agentnews.test.xhome.us)
Date: 11/24/03


Date: Mon, 24 Nov 2003 14:16:28 -0800

On Sun, 23 Nov 2003 21:02:59 -0800, DaiIchi
<daiichi@agentnews.test.xhome.us> wrote:

>
>I'm using Tomcat in standalone mode. When a URL without a filename is
>entered into the browser (ie. "http://myhost.mydomain.com"), and the
>default path does NOT have an index.html, but rather an index.jsp
>file, Tomcat response with an "HTTP/1.1 302 Moved Temporarily" and a
>"Location: http://myhost.mydomain.com/index.jsp" ... I was wondering
>if there is a configuration for tomcat that can stop this behavior,
>i.e., just run index.jsp?
>

Answer to my own question. I was using Tomcat 4.1.x... and with that
version, it is impossible. With Tomcat 3, you can use the
StaticInterceptor useInternal="true". But Tomcat 4 doesn't support
any such thing.

You can fix this by modifying the DefaultServlet, but that's about it.

Rumor has it that this problem was fixed in Tomcat 5. Does anyone
know if it is?



Relevant Pages

  • Re: Tomcat configuration question
    ... >>| I'm using Tomcat in standalone mode. ... When a URL without a filename is ... because I use Tomcat 4.1.29 and when I point my browser to ...
    (comp.lang.java)
  • Re: Tomcat configuration question
    ... | I'm using Tomcat in standalone mode. ... When a URL without a filename is ... you can set up the welcome file using web.xml see the dtd ...
    (comp.lang.java)
  • Tomcat configuration question
    ... I'm using Tomcat in standalone mode. ... When a URL without a filename is ... entered into the browser, ...
    (comp.lang.java)
  • Re: Tomcat configuration question
    ... >| I'm using Tomcat in standalone mode. ... When a URL without a filename is ... Tomcat returns a 302 error to force the browser to redirect to the ...
    (comp.lang.java)
  • Mobile phone "SAVE" filename problem related to servlet
    ... user views a file by browsing to a servlet at tomcat ... the servlet code: ... filename is not the one set on the Header => filename, ... Prev by Date: ...
    (comp.lang.java.programmer)