Explain integrate log4j in struts2 application?



Explain integrate log4j in struts2 application?..

Answer / 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

More Struts Interview Questions

What is xml based validation in struts2?

1 Answers  


What is spring hibernate and struts in java?

1 Answers  


What is the purpose of @before annotation?

1 Answers  


Is Struts Framework part of J2EE?

1 Answers  


What is the difference between validation.xml and validator-rules.xml files in struts?

1 Answers  


What is interceptor struts2?

1 Answers  


How do you convert struts to springs?

1 Answers  


What is the apache struts vulnerability?

1 Answers  


What does modeldriven interceptor?

1 Answers  


what is frame work in struts?

3 Answers   Infosys,


Can you explain custom tag?

1 Answers  


when connecting with the database,if database server is down,ho can we handle this exception in struts,how can we send error message to the user?

4 Answers   Wipro,


Categories