Hi,
just to check if this would be an option: is it possible to tell tomcat
not to render its error pages?
Of course one configure an empty file as error page, but this would have
to be done for *all* error codes AFAICS.
Thanx && cheers,
Martin
On Tue, 2008-03-18 at 17:15 -0400, Christopher Sc
On Tue, 2008-03-18 at 16:42 -0700, Hassan Schroeder wrote:
> On Tue, Mar 18, 2008 at 4:28 PM, Martin Grotzke
> <[EMAIL PROTECTED]> wrote:
>
> > Only for the REST api (mapped to a specific path/url-pattern) we do not
> > want to return these error pages but only codes.
>
> So write dynamic error
On Tue, Mar 18, 2008 at 4:28 PM, Martin Grotzke
<[EMAIL PROTECTED]> wrote:
> Only for the REST api (mapped to a specific path/url-pattern) we do not
> want to return these error pages but only codes.
So write dynamic error pages that return the appropriate content
(or lack thereof) based on the
Hi,
On Tue, 2008-03-18 at 17:15 -0400, Christopher Schultz wrote:
> You could set an in web.xml that produces no output for
> these status codes.
the rest of the application serves pages visited by humans - for them we
want to display error pages. (Sorry, I didn't point this out)
Only for the R
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Martin,
Martin Grotzke wrote:
| Is there a way not to return error pages in these cases?
You could set an in web.xml that produces no output for
these status codes. Something like:
~ 400
~ /path/to/zero/length/file
- -chris
-BEGIN PGP S
Hi,
we have a web application running in tomcat that returns error pages for
status codes like e.g. 404 - absolutely fine.
In the same servlet context we provide a RESTful API (using jersey [1]),
that in most of the cases returns xml. In some cases responses with only
the error code set (e.g. 400