adspace


Explain integrate log4j in struts2 application?

Answer Posted / Anuj Kumar Tripathi

Logging can be integrated into a Struts2 application using the Log4j logging framework. To do this, you will need to add the appropriate Log4j JAR files to your project's classpath and configure the Log4j properties file. The Struts2 Action class provides a log attribute that can be used to log messages. You can also use the <s:log> tag in your JSP pages to log messages.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is action chaining ?

1168


What is the difference between filters and interceptors ?

1316


What do you know about validation plugin ?

1031


How is declarative handling of exceptions done in struts ?

1011


What are the contents on web.xml in struts application ?

1072