On 4/18/07 4:10 AM, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> How could I do ?
Parent action:
Public abstract class MyParentAction extends ActionSupport {
public String execute () throws Exception {
// do your security stuff.
String result = this.myExecute ();
// do any cleanup.
return result;
}
public abstract String myExecute () throws Exception;
}
Public class MyChildAction extends MyParentAction {
public String myExecute () throws Exception {
// Do what ever you want.
}
}
It's just an implementation of the template pattern.
Now, with that example shown, I wouldn't use it. Look at an interceptor to
do this. I'm working on exactly this right now, a login interceptor. Stay
tuned for a write up when I get done.
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]