Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Security / October 2003

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Frogger - 06 Oct 2003 22:54 GMT
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
John C. Bollinger - 09 Oct 2003 17:42 GMT
> 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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.