@@ -0,0 +1,933 @@
+package org.apache.commons.chain.mailreader.struts;%0A%0Aimport org.apache.struts.action.*;%0Aimport org.apache.struts.webapp.example.Constants;%0A%0Aimport javax.servlet.http.HttpServletRequest;%0Aimport javax.servlet.http.HttpServletResponse;%0A%0A/**%0A * Run LogonCommand and confirm success.%0A */%0Apublic class LogonAction extends MailReaderAction %7B%0A%0A    protected ActionForward checkState(ActionMapping mapping,%0A        ActionForm form,%0A        HttpServletRequest request,%0A        HttpServletResponse response) throws Exception %7B%0A%0A        Object user = request.getSession().getAttribute(Constants.USER_KEY);%0A        if (user==null) %7B%0A            ActionMessages errors = new ActionMessages();%0A            errors.add(%0A               ActionMessages.GLOBAL_MESSAGE,%0A               new ActionMessage(%22error.password.mismatch%22));%0A            saveErrors(request,errors);%0A            return findInput(mapping);%0A        %7D%0A%0A        return null;%0A%0A    %7D%0A%0A%0A%0A%7D%0A

Add LogonAction to postcheck state