users@glassfish.java.net

Re: Custom Error Page for 503/504

From: <glassfish_at_javadesktop.org>
Date: Wed, 26 Mar 2008 18:34:13 PST

Hmm, this is working for me.

Can you write a simple servlet that calls ServletResponse.sendError(<code>), where <code> is one of the error codes mapped to an error page in your web.xml, and see if your error page is getting invoked?

BTW, if you upgrade to a Servlet 2.5 based web.xml, you'll be able to collapse all your filter mappings into one:

  <filter-mapping>
    <filter-name>Compress</filter-name>
    <url-pattern>*.jsp</url-pattern>
    <url-pattern>*.htm</url-pattern>
    <url-pattern>*.html</url-pattern>
    <url-pattern>*.js</url-pattern>
    <url-pattern>*.do</url-pattern>
  </filter-mapping>
[Message sent by forum member 'jluehe' (jluehe)]

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