File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Extending RequestProcessor" Watch "Extending RequestProcessor" New topic
Author

Extending RequestProcessor

Eshwar Prasad
Ranch Hand

Joined: Mar 21, 2008
Posts: 202

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

Joined: Aug 03, 2008
Posts: 9304
    
  17

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
Author
Rancher

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: http://aspose.com/file-tools
 
subject: Extending RequestProcessor