users@glassfish.java.net

Re: Directory Listings still showing after changing default-web.xml

From: <glassfish_at_javadesktop.org>
Date: Fri, 19 Dec 2008 08:02:55 PST

The generated web.xml has listings = false. It redirects to the correct Error.jsp when the URL is invalid unless the URL ends with /theme/
EX: http://address/projectname/theme/ will still display the directory listings for the GF_HOME directory.
I assume that it has something to do with this ThemeServlet tag in the web.xml.
<servlet-mapping>
   <servlet-name>ThemeServlet</servlet-name>
   <url-pattern>/theme/*</url-pattern>
</servlet-mapping>

If I change this URL pattern then it does not show the directory listing but firebug shows the following error:
webui is not defined.
[Message sent by forum member 'tr702' (tr702)]

http://forums.java.net/jive/thread.jspa?messageID=322660