I used wildcard mapping to define several methods that may be called for
a struts action class. But each of those methods contain duplicate lines
of code that need to be called before the method returns.
Is there a way in struts to wire up a post operation after the action
method (whichever it happens to be) gets called?
thanks,
filipe
ps:
yes.. I could do the following... but I'd rather leave this as a last
resort...
public String execute() {
post();
return SUCCESS;
}
public String save() {
post();
return SUCCESS;
}
<All other action methods....>
public void post_operation() {
blah blah blah;
}