Package cn.webwheel

Examples of cn.webwheel.LogicException


        notNull(getLoginUser(), "登录超时");
    }

    protected void ensureLoginPage() throws SQLException {
        if (getLoginUser() == null) {
            throw new LogicException(new RedirectResult("/login.html"));
        }
    }
View Full Code Here


public class BaseAction extends wbbs.web.BaseAction {

    public void ensureLoginAction() throws SQLException {
        super.ensureLoginAction();
        if (!loginUser.id.equals("admin")) {
            throw new LogicException(err("请登录"));
        }
    }
View Full Code Here

    }

    public void ensureLoginPage() throws SQLException {
        super.ensureLoginPage();
        if (!loginUser.id.equals("admin")) {
            throw new LogicException(new RedirectResult("/login.html"));
        }
    }
View Full Code Here

TOP

Related Classes of cn.webwheel.LogicException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.