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 |
What is xml based validation in struts2?
What is spring hibernate and struts in java?
What is the purpose of @before annotation?
Is Struts Framework part of J2EE?
What is the difference between validation.xml and validator-rules.xml files in struts?
What is interceptor struts2?
How do you convert struts to springs?
What is the apache struts vulnerability?
What does modeldriven interceptor?
what is frame work in struts?
Can you explain custom tag?
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?