Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Struts and the fly likes Extending RequestProcessor Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Extending RequestProcessor" Watch "Extending RequestProcessor" New topic

Extending RequestProcessor

Skanda Raman
Ranch Hand

Joined: Mar 21, 2008
Posts: 205

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

Joined: Aug 03, 2008
Posts: 9463

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...

SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
David Newton

Joined: Sep 29, 2008
Posts: 12617

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.
I agree. Here's the link:
subject: Extending RequestProcessor
jQuery in Action, 3rd edition