Java – Generic Interface Example

Java Struts – Logging with Log4j Example

Download Log4j:

Log4j Appender:
Create a Log4j properties file ( and define the appender details (where to log and log file details). And put the into your project classpath.

Struts Action Class:

Struts Custom Exception Handler:

Log4j Output File Sample- c:\\logging.log

Java – String Reverse Example