| Author |
Struts2 after action invoked
|
debraj mallick
Ranch Hand
Joined: Mar 08, 2011
Posts: 180
|
|
hi all,
i need to log the action name once it is invoked, to do this i am using intecptor which is like
my struts.xml is like
this does not work when i am getting any exception because action log is also saved, all i need to implement is: if the action is invoked successfully then only the action name will be save otherwise not.
I didn't understand what i am missing, Any suggestion would be great.
|
 |
Mohana Rao Sv
Ranch Hand
Joined: Aug 01, 2007
Posts: 427
|
|
|
Write a method and annotate it @After after your action execution that method will be executed for further details refer the link http://struts.apache.org/2.0.9/struts2-core/apidocs/index.html and make sure that you added annotations interceptor.
|
ocjp 6 — Feeding a person with food is a great thing in this world. Feeding the same person by transferring the knowledge is far more better thing. The reason is the amount of satisfaction which we get through food is of only one minute or two. But the satisfaction which we can get through the knowledge is of life long.
|
 |
 |
|
|
subject: Struts2 after action invoked
|
|
|