• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Extending RequestProcessor

 
Ranch Hand
Posts: 205
Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 9707
43
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic