• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Directory Listing

 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Proudly marching to the beat of a different kettle of fish... while reading this tiny ad
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic