[Logo]
Forums Register Login
Logging errors from jsp
Hi All,
As a part of implementing logging in my web application using LogBack , I'm trying to apply logging wherever relevant . I 've handled all the error logging coming through the java classes using the default options available . However , how do I get the errors generated from the jsp to be logged.??
Even if use the <c:catch> mechanism , how do I get this error to be logged to a log file?
Thank you for your time.
(1 like)
You shouldn't be catching errors in the JSP, or anywhere else for that matter.

Rather, configure an error handling servlet (servlet, not JSP, servlet) in the deployment descriptor and handle errors centrally.
Wink, wink, nudge, nudge, say no more ... https://richsoil.com/cards



All times above are in ranch (not your local) time.
The current ranch time is
Nov 21, 2017 03:38:11.