In part you are correct. You can try doing this:

in web.xml

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

This goes after <servlet-mapping> and before any <taglib> declarations.

The 404 can be replaced with any html error code you wish (as far as I know). 

I'm getting an NPE error right now and the error code is 500. So you
can probably put that up. I don't use it (currently) because I like to
see the stack traces live instead of using log files to debug, but
when I release the site I put up real error pages and use web.xml.


I'm using Jboss 4.0.1sp1, so I'm making my comments on that premise,
so I can't guarentee any of my hasty generalizations will work on your
web container.

Hope this helps,

Andrew

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to