Para: Struts Users Mailing List
Assunto: Re: RES: Subclassing ActionServlet
This way you can't extend other 'struts core actions' (Dispatch,
Lookup...).
I think a better way may be:
- Using a filter (servlet 2.3) in order to pre and post process the
request
- Extending RequestDisp
This way you can't extend other 'struts core actions' (Dispatch, Lookup...).
I think a better way may be:
- Using a filter (servlet 2.3) in order to pre and post process the request
- Extending RequestDispatcher
Regards,
Guido.
PD. I am not sure, but i think you can find a discussion about that in
A simple way that I use do go:
Super Action class, like:
UserMustBeLoggedAction{
execute(attribs){
verify session stuff
if ok -> myExecute(attribs);
else return ActionForward;
}
abstract myExecute(attribs);
}
NewAction extends UserMustBeLoggedAction{
m
3 matches
Mail list logo