• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 247
  • Last Modified:

Remove Directory Listing and Redirect to costume Error Page

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
abooysen2
Asked:
abooysen2
1 Solution
 
rrzCommented:
Did you try naming your custom page   index.jsp   ?  
0
 
Chad SmithSoftware EngineerCommented:
<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

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now