RES: Subclassing ActionServlet

2003-12-05 Thread Felipe Nascimento
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{

Re: RES: Subclassing ActionServlet

2003-12-05 Thread Guido Garca Bernardo
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

RES: RES: Subclassing ActionServlet

2003-12-05 Thread Felipe Nascimento
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 RequestDispatcher Regards