[TOMCAT] I want to hide "/index.jsp" and having "/" at the root of my site - Java

This is a discussion on [TOMCAT] I want to hide "/index.jsp" and having "/" at the root of my site - Java ; Hi, I have a webapp with a welcome file called "index.jsp". When i visit my site http://www.mysite.com/ , it convert the url in http://www.mysite.com/index.jsp !! I don't want to see index.jsp but only "/" Can you help me ? Thanx...

+ Reply to Thread
Results 1 to 2 of 2

[TOMCAT] I want to hide "/index.jsp" and having "/" at the root of my site

  1. Default [TOMCAT] I want to hide "/index.jsp" and having "/" at the root of my site

    Hi,

    I have a webapp with a welcome file called "index.jsp".

    When i visit my site http://www.mysite.com/ , it convert the url in
    http://www.mysite.com/index.jsp !!

    I don't want to see index.jsp but only "/"

    Can you help me ? Thanx





  2. Default Re: [TOMCAT] I want to hide "/index.jsp" and having "/" at the rootof my site

    Frogger wrote:

    > Hi,
    >
    > I have a webapp with a welcome file called "index.jsp".
    >
    > When i visit my site http://www.mysite.com/ , it convert the url in
    > http://www.mysite.com/index.jsp !!


    Tomcat is redirecting the browser to the URL of the file it is actually
    delivering. This is normal, and generally desirable behavior. Apache
    and IIS also do this sort of thing for welcome pages.

    > I don't want to see index.jsp but only "/"


    Well, you could try writing a bonafide servlet to wrap a forward to
    index.jsp, and then map the servlet to the context root. You will want
    to verify that this does not prevent other pages from being served (or
    if it does, then make the servlet more complex so as to support it).
    Really, though, I think that has high potential to cause you problems
    down the road.


    John Bollinger
    jobollin@indiana.edu


+ Reply to Thread

Similar Threads

  1. error_log : $_COOKIE "Undefined index" "PHP Notice"
    By Application Development in forum PHP
    Replies: 5
    Last Post: 12-07-2007, 12:55 PM
  2. email-display: "N", "D", " ": yeah; but "O"? How to MARK "O"?
    By Application Development in forum Mutt
    Replies: 0
    Last Post: 10-30-2007, 07:13 AM
  3. Replies: 3
    Last Post: 06-28-2007, 01:35 AM
  4. Replies: 0
    Last Post: 03-21-2007, 01:26 PM
  5. """""""""""""""""""""Visual C++ 2005 Express"""""""""""""""""
    By Application Development in forum DOTNET
    Replies: 0
    Last Post: 03-12-2006, 03:55 AM