FileDocCategorySizeDatePackage
CustomRequestProcessor2.javaAPI DocExample1241Fri Sep 03 10:33:44 BST 2004com.oreilly.strutsckbk.ch11

CustomRequestProcessor2

public class CustomRequestProcessor2 extends org.apache.struts.action.RequestProcessor

Fields Summary
Constructors Summary
Methods Summary
protected org.apache.struts.action.ActionForwardprocessActionPerform(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.apache.struts.action.Action action, org.apache.struts.action.ActionForm form, org.apache.struts.action.ActionMapping mapping)

        HttpSession session = request.getSession();
        User user = (User) session.getAttribute(Constants.USER_KEY);
        if (user == null) {
            return mapping.findForward("logon");
        } else {
            return super.processActionPerform(request, response, action, form,
                    mapping);            
        }