users@glassfish.java.net

Re: How to hide or customize status pages?

From: <glassfish_at_javadesktop.org>
Date: Mon, 03 Mar 2008 18:23:22 PST

you can customize the response contents for error codes by defining error-page mappings in your web.xml, e.g.:

    <error-page>
        <error-code>404</error-code>
        <location>/404handler.jsp</location>
    </error-page>

if all you want to do is avoid any server product specific info in the response, then define a system property named "product.name" and set its value to the empty string.

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

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