Ok I have made a class call BaseAction in which I have some customed code. That extends the Action class. It looks like this:

***********************************************************************
public abstract class BaseAction extends Action{

public ActionForward execute(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response) throws IOException, ServletException{
LogedinBean login;
HttpSession session;


        if(request.getSession(false)==null){
            return mapping.findForward("Login");
        }
        else session = request.getSession();

        if(session.getAttribute("login")==null){
            session.invalidate();
            return mapping.findForward("Login");
        }
        else login = (LogedinBean)session.getAttribute("login");

        if(login.getLc() == null){
            session.invalidate();
            return mapping.findForward("Login");
        }

        return executeAction(mapping, form, request, response);
    }


protected abstract ActionForward executeAction(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response) throws IOException, ServletException;




}
******************************************************************************

Now me Q is how do I make this change visible in loopupdispatch action?
Or how do I make a BaseLookupDispatchAction with me custom code?



/Best regards Marc


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to