aspose file tools*
The moose likes Tomcat and the fly likes Directory Listing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Directory Listing" Watch "Directory Listing" New topic
Author

Directory Listing

prathamesh bandivadekar
Ranch Hand

Joined: May 22, 2008
Posts: 43
Hi All,

We have web application hosted on Tomcat 4.0.

When i m trying to click on the hyperlink given on the pag it should dsiplay me a jsp page.

But instaed it is showing me a directory listing!!!

What can be the problem?

Is it related with any .jar files?


Thanks in Advance!!!
Pratham.


Prathamesh M.B.<br />Java....only.....
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12783
    
    5
There is a Tomcat setting that controls directory listing displays - see the web.xml file in the tomcat\conf directory for the default servlet.

If the "listings" parameter is "true" or is not specified, Tomcat will show the directory for any request that cant be mapped to a "welcome" file such as index.html or index.jsp. See the welcome-file-list area of web.xml.

Bill
prathamesh bandivadekar
Ranch Hand

Joined: May 22, 2008
Posts: 43
Respected sir,

The situation is like this..

I loged into the application. I got search screen. When i enter a search criteria,i get a list of result. Then each result has link called modify.

When i click on modify link i should a jsp.

But instead i m getting directory listing.

It is redirecting me to the directory listing ..instead of servlet.

:-(
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12783
    
    5
When i click on modify link i should a jsp.


Perhaps that link is ill-formed and Tomcat does the default behavior.

If this was my problem I would be using the browser "view source" to see exactly what the HTML link contains.

Bill
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Directory Listing