powered by Jive Software

How can i disable directory listing

Hi team,

I want to disable the directory listing of File directory.

I have added following param in web.xml but no luck

<servlet> <servlet-name>default</servlet-name> <servlet-class>org.eclipse.jetty.servlet.DefaultServlet</servlet-class> <init-param> <param-name>dirAllowed</param-name> <param-value>false</param-value> </init-param> </servlet>

<context-param> <param-name>org.eclipse.jetty.servlet.Default.dirAllowed</param-name> <param-value>false</param-value> </context-param>

but no help.

can any one suggest better idea ?

Thanks,