Announcement Announcement Module
Collapse
No announcement yet.
How to get BindException reference inside my Aspect? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to get BindException reference inside my Aspect?

    Hello,

    I am using Spring Aspect to trap any Exception while
    onSubmit(Request,Response,CommandObject,BindExcept ion) inside a
    SimpleFormController.


    The aspect is configured to act on proxy object for
    org.springframework.web.servlet.mvc.Controller, so my methodInvocation
    object ultimatelly wraps around handleRequest(Request,Response)


    Is there any way I can get BindException (parameter passed to onSubmit()) reference inside my Advice. To my advice only parameters of handleRequest() are visible.



    FYI, Inside my aspect I am using
    public Object invoke(MethodInvocation methodInvocation) throws
    Throwable {
    try
    {
    methodInvocation.proceed();
    }
    catch(Exception ex)
    {
    ---
    }
    }

    Thanks,
    -MW
    Last edited by manishwadhwa; Sep 5th, 2006, 04:14 AM.
Working...
X