remove stack-trace from public web

2005-03-31 Thread Andreas Andersson
Hi!
Is there anyway to make tomcat not print the stack trace when jsp fails?
--
Andreas Andersson
IT Dept.
Travelstart Nordic
[EMAIL PROTECTED]
http://www.travelstart.se
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: remove stack-trace from public web

2005-03-31 Thread Viorel Dragomir

Write stuff like this into your app's web.xml file.

error-page

error-code404/error-code

location/common/notFound.html/location

/error-page

error-page

error-code403/error-code

location/common/file.html/location

/error-page

error-page

error-code500/error-code

location/common/error.html/location

/error-page



Viorel Dragomir

.
..
---



- Original Message - 
From: Andreas Andersson 
To: Tomcat Users List 
Sent: Thursday, March 31, 2005 13:22
Subject: remove stack-trace from public web


Hi!

Is there anyway to make tomcat not print the stack trace when jsp fails?

-- 
Andreas Andersson
IT Dept.
Travelstart Nordic
[EMAIL PROTECTED]
http://www.travelstart.se

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


Re: remove stack-trace from public web

2005-03-31 Thread Antony Paul
You can use an error page to display when an exception occurs. This
can be configured in web.xml.
for eg.
error-page
exception-typejava.lang.Exception/exception-type
location/internalError.html/location
/error-page

it can be used with HTTP error status also. The following displays
invalidpage.html if a page is not found.

error-page
error-code404/error-code
location/invalidpage.html/location
/error-page



On Thu, 31 Mar 2005 13:22:40 +0200, Andreas Andersson
[EMAIL PROTECTED] wrote:
 Hi!
 
 Is there anyway to make tomcat not print the stack trace when jsp fails?
 
 --
 Andreas Andersson
 IT Dept.
 Travelstart Nordic
 [EMAIL PROTECTED]
 http://www.travelstart.se
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-- 
rgds
Antony Paul
http://www.geocities.com/antonypaul24/

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