Thanks, but I need to return the proper error code. So that wont work.

On Thu, 2008-11-20 at 22:25 +0800, jim ma wrote:
> The simple way is returning the http OK  200 status code instead of  500 ,
> and set the error message to response body.  Does it work for you ?
> 
> On Thu, Nov 20, 2008 at 9:20 PM, Padraig O'Dowd <[EMAIL PROTECTED]> wrote:
> 
> > Hi, I'm encountering the following problem and just wanted to find out
> > if there is a way to disable this in tomcat?
> >
> > In my web app in tomcat, I do the following -
> > response.setError("My error message");
> >
> > but when tomcat returns the response, it detects that the connecting
> > client is using http and then embeds the error message in html - is
> > there a way to stop this and just get tomcat to return my error message?
> >
> > Thanks,
> > Padraig O'Dowd
> >
> >
> > ---------------------------------------------------------------------
> > To start a new topic, e-mail: users@tomcat.apache.org
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to