-----------------------------
Please read the FAQ!
<http://java.apache.org/faq/>
-----------------------------

Jeremy Kassis wrote:
> 
> Sorry, I should have been more specific . . . I would like to have the
> results of failed servlet compilations (specificly java server pages that
> have failed compilation) to appear in my browser window . . . jserv's
> output to my apache error_log suggests that this is possible:

This is not really a JServ issue, but depends more on your JSP
implementation and compiling environment. I have been using GSP
(www.bitmechanic.com) and it does this with compilation errors by
default. With runtime exceptions, we use its concept of an "Application"
that can also act as the last line of Exception handling - catching any
exceptions not handled directly in your template. In the applications
handleException method, I check and initArgs parameter 'debug' that
defines whether we are running in production or test/development and if
set, set the status code to 200_OK and send the stack trace back to the
browser as HTML. If not set - send 500 SERVER_ERROR in which case apache
handles it.

This is probably not much help unless you are using GSP, but whatever
implementation you are using may have an equivalent mechanism - or you
can always extend it yourself!

Damian

-- 
Damian Fauth                                       201 Sussex Street
Software Engineer                                   Sydney, NSW 2000
John Fairfax Holdings Ltd                                  Australia
[EMAIL PROTECTED]                    Ph. (+612) 9282 3528


--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html/>
Problems?:           [EMAIL PROTECTED]

Reply via email to