Solved

Remove Directory Listing and Redirect to costume Error Page

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

After uninstalling Opera browser (for example ver. 10.63), your attempts to open a web page by clicking on a URL link may fail with an error message.  The error is "This operation has been canceled due to restrictions in effect on this computer. Ple…
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…
The viewer will learn how to implement Singleton Design Pattern in Java.
Google currently has a new report that is in beta and coming soon to Webmaster Tool accounts. This Micro Tutorial will highlight new features for Google Webmaster Tools.

708 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now