[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...
-
[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
-
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
Similar Threads
-
By Application Development in forum PHP
Replies: 5
Last Post: 12-07-2007, 12:55 PM
-
By Application Development in forum Mutt
Replies: 0
Last Post: 10-30-2007, 07:13 AM
-
By Application Development in forum Pegasus
Replies: 3
Last Post: 06-28-2007, 01:35 AM
-
By Application Development in forum JDBC JAVA
Replies: 0
Last Post: 03-21-2007, 01:26 PM
-
By Application Development in forum DOTNET
Replies: 0
Last Post: 03-12-2006, 03:55 AM