Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java Open Source > Apache Tomcat
| Search | Today's Posts | Mark Forums Read
Apache Tomcat General discussion of the Apache Tomcat servlet container. For discussions specific to the Professional Apache Tomcat book, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Apache Tomcat section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 15th, 2005, 08:21 PM
Authorized User
 
Join Date: Jul 2003
Location: , , .
Posts: 62
Thanks: 0
Thanked 0 Times in 0 Posts
Default puzzled with tomcat5.5.9

I use JDK1.5.0_04 and Tomcat5.5.9 under Windows 2003 Server,I have a directory like follows:
Tomcat 5.5\webapps\example\ex1.jsp
Tomcat 5.5\webapps\example\ex2.jsp
Tomcat 5.5\webapps\example\WEB-INF
Tomcat 5.5\webapps\example\WEB-INF\web.xml

I found a puzzle thing,I write follow address in IE6.0,
http://localhost:8080/example

I find IE show my directory content!!!
ex1.jsp
ex2.jsp
WEB-INF

Why? Before I use them under Windows 2000 server,it don't show directory content. I am very puzzled with it. How to do in order to not show directory content in Tomcat?

Any idea will be appreciated!




 
Old September 21st, 2005, 02:00 AM
Authorized User
 
Join Date: Apr 2005
Location: , , India.
Posts: 71
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Edward,

Did you specify the welcome file list in web.xml?

Something similar to this

<welcome-file-list>
<welcome-file>ex1.jsp</welcome-file>
</welcome-file-list>

This will make sure that call to http://localhost:8080/example will be routed to ex1.jsp

Generally the servers search for index file in the public area of the application. If they find one, it will be displayed else a listing of all contents will be displayed.

Regards,
eNJay.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 2 ThemeSelector - Puzzled Porjung BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 2 June 11th, 2007 07:43 AM
How to Configuring tomcat5.0 with IIS 5.1 skiiqbal Apache Tomcat 1 June 25th, 2006 07:51 AM
Why Tomcat5.5.9 can't work? Edward King Apache Tomcat 1 August 12th, 2005 06:03 AM
Naming Exception in Tomcat5.x enjay Apache Tomcat 3 August 12th, 2005 05:55 AM
Tomcat3.3.2 to Tomcat5.0.24 amith_pj Apache Tomcat 2 July 10th, 2005 04:23 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.