Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Extending RequestProcessor

 
Skanda Raman
Ranch Hand
Posts: 205
Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I am trying to extend RequestProcessor to use custom request processor.

Compilation of below code was successful.



Then i added the below lines to struts-config.xml file and restarted the application



Now, i do not find the logs written to file and also the SOP i added in above code is not displaying in console.

I am using jboss-4.0.0 application server.

Can you please let me know if i am doing any thing wrong in customizing the processor.

Thanks in advance
 
Ankit Garg
Sheriff
Posts: 9527
32
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you just want to do logging, you might use an interceptor. Also I'm not sure but the log method was depricated I think (as per the documentation), so that may be a reason that it's not working...
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Interceptors are for Struts 2.

I'd consider using Log4J, Commons Logging (which can wrap Log4J), or similar rather than trying to use the built-in logging.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic