struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alireza Fattahi <afatt...@yahoo.com.INVALID>
Subject Find action method in interceptor ( One action class with lots of action methods in it)
Date Sat, 07 Jun 2014 05:29:24 GMT
Please consider below action class:

 public class MyAction extends ActionSupport{
    
      @Action("action1")
      public String action1(){    

      }    
    
      @Action("action2")
       public String action2(){    
        }

      @Action("action3")
      public String action3(){    

      }    
    }
     
Is there any way in an inerceptor which I can find which method was really executed. I can
find the class with

myActionClass = invocation.getAction().getClass(); As I have many action methods in one class,
how can I found which method was executed

 
~Regards,
~~Alireza Fattahi
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message