Matt RaibleMatt Raible is a Web Developer and Java Champion. Connect with him on LinkedIn.

The Angular Mini-Book The Angular Mini-Book is a guide to getting started with Angular. You'll learn how to develop a bare-bones application, test it, and deploy it. Then you'll move on to adding Bootstrap, Angular Material, continuous integration, and authentication.

Spring Boot is a popular framework for building REST APIs. You'll learn how to integrate Angular with Spring Boot and use security best practices like HTTPS and a content security policy.

For book updates, follow @angular_book on Twitter.

The JHipster Mini-Book The JHipster Mini-Book is a guide to getting started with hip technologies today: Angular, Bootstrap, and Spring Boot. All of these frameworks are wrapped up in an easy-to-use project called JHipster.

This book shows you how to build an app with JHipster, and guides you through the plethora of tools, techniques and options you can use. Furthermore, it explains the UI and API building blocks so you understand the underpinnings of your great application.

For book updates, follow @jhipster-book on Twitter.

10+ YEARS


Over 10 years ago, I wrote my first blog post. Since then, I've authored books, had kids, traveled the world, found Trish and blogged about it all.

E-Mailing errors when an error-page is displayed

I'm implementing an interesting feature this morning. When a user views the error-page of the application, an e-mail is sent to an administrator with a StackTrace. By error-page, I mean the "errorPage" attribute in a JSP's page declaration.

<%@ page language="java" errorPage="/errorPage.jsp" 
    contentType="text/html; charset=utf-8" %>

I'm using the mailer taglib to do this, but can't help thinking that Log4j already provides similar functionality. Doesn't it have an SMTPAppender or something like that. I briefly scanned their site, but didn't see anything. If you know how to configure this functionality - hook me up!

Posted in Java at Jan 11 2003, 06:20:17 AM MST 4 Comments
Comments:

Take at look here: http://jakarta.apache.org/log4j/docs/api/org/apache/log4j/net/SMTPAppender.html http://jakarta.apache.org/log4j/docs/manual.html (look for the Appenders and Layouts section) HTH, /rick

Posted by Rick Salsa on January 11, 2003 at 05:41 PM MST #

Thanks - I'll look into it! In the meantime, is anyone using the SMTPAppender that might be able to provide an example configuration?

Posted by Matt Raible on January 11, 2003 at 05:51 PM MST #

I have used log4j's SMTPAppender with success. Actually it was overwhelming, over 10.600 eMail in my Inbox only between Christmas and New Year! To be sure, you know what you're doing.

Posted by Philipp Meier on January 11, 2003 at 07:20 PM MST #

This is also a normal feature that the application server can configure, so that the application doesn't have to do it in the error page. I don't know which ones do it, but I know Orion and 9iAS do...

Posted by Joseph Ottinger on January 12, 2003 at 09:36 AM MST #

Post a Comment:
  • HTML Syntax: Allowed