Solved

Remove Directory Listing and Redirect to costume Error Page

Posted on 2011-09-27
2
240 Views
Last Modified: 2012-05-12
Hi

I trying to remove my directory listing on my web page.

So the full url is http://localhost:18080/WallStreetProject/logon.jsp this will take them to the logon page

but when the user try to do this http://localhost:18080/WallStreetProject/  I want to direct them to a custom page and not see the directory under my war file

I am not sure can I do this in the web.xml file
0
Comment
Question by:abooysen2
2 Comments
 
LVL 27

Expert Comment

by:rrz
ID: 36710399
Did you try naming your custom page   index.jsp   ?  
0
 
LVL 10

Accepted Solution

by:
Chad Smith earned 125 total points
ID: 36802382
<welcome-file-list>  
        <welcome-file>static.html</welcome-file>  
</welcome-file-list>

or

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

or

<welcome-file-list>  
        <welcome-file>servlet</welcome-file>  
</welcome-file-list>
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Google Chrome Profile Errors in Windows 10 9 51
going to wrong jsp page 2 34
DNS Forward 4 18
IE 11 proxy GPO 1 16
I recently found myself in a Corporate Situation where the client had requested blocking access to any and all websites except his own Domain? Easy? I am sure this would be your answer but their requirement was, this has to be done without using…
Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
This Micro Tutorial will demonstrate how to add subdomains to your content reports. This can be very importing in having a site with multiple subdomains.
How to create a custom search shortcut to site-search Experts Exchange using Google in the Firefox browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch your Bookmark Menu: Press 'Ctrl +…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question