users@glassfish.java.net

Re: how do you turn off directory listings?

From: <glassfish_at_javadesktop.org>
Date: Mon, 12 Nov 2007 16:06:41 PST

I think some of the default values in default-web.xml should be dependent on the domain profile in use. For example, I would assume that directory listings should be enabled by default in a developer environment, but should be disabled by default in a production environment. Other examples include the init parameters of the JspServlet (which is also defined in default-web.xml): In a development environment, you want the JSP compiler to check the timestamps of a JSP page and its corresponding servlet class file each time the JSP page is accessed, and recompile the JSP page if necessary, whereas in a production environment, you want to avoid this overhead, since the JSP pages are not expected to change.

Jan
[Message sent by forum member 'jluehe' (jluehe)]

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