• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

Directory Listing

 
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
 
Note to self: don't get into a fist fight with a cactus. Command this tiny ad to do it:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!