• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Logging errors from jsp  RSS feed

 
Ranch Hand
Posts: 477
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Author and ninkuma
Marshal
Posts: 66797
168
IntelliJ IDE Java jQuery Mac Mac OS X
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!