aspose file tools*
The moose likes Spring and the fly likes Spring AOP config with JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Spring AOP config with JSP" Watch "Spring AOP config with JSP" New topic
Author

Spring AOP config with JSP

Sunny Bhandari
Ranch Hand

Joined: Dec 06, 2010
Posts: 448

I have configured AspectJ in my spring application. Since my app is a legacy app which is using JSP scriptlet code for server side processing.

The problem I am facing is that I want to invoke an @AfterThrowing Advice when an Exception occurs in the JSP scriptlet code.

My Advice method signature as of now is:



In the above code, OtherBeanIntf is another Java bean which is working fine with this logging advice. Now how do I configure this advice to work with JSP scriptlet code too?


Java Experience
 
 
subject: Spring AOP config with JSP
 
Similar Threads
@AfterThrowing for unhandled exceptions?
Handling Exception in Spring
Joinpoint and Pointcut
Getting method name on spring AOP @Before
Spring AOP for Logging | How to write predefined custom error codes to the log file