Solved

Remove Directory Listing and Redirect to costume Error Page

Posted on 2011-09-27
2
237 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Do you come here a lot? Are you lazy like me and don't want to go through the "trouble" of having to click your Dock's Safari icon and then having to click your Experts Exchange Favorites bookmark to get here? Well then this article is for you.
Several part series to implement Internet Explorer 11 Enterprise Mode
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

786 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