package cn.cerc.ui.page;

import cn.cerc.mis.core.IForm;
import cn.cerc.ui.core.JspFile;
import cn.cerc.ui.parts.UIFooter;
import cn.cerc.ui.parts.UIHeader;
import cn.cerc.ui.parts.UIToolbar;

public class JspPage extends JspFile {
    // 头部：广告+菜单
    private UIHeader header;
    // FIXME 此处调用不合理，为保障编译通过先保留 2021/3/14
    private UIToolbar toolBar;
    // FIXME 此处调用不合理，为保障编译通过先保留 2021/3/14
    private UIFooter footer;
    
    public JspPage() {
        super();
    }

    public JspPage(IForm form) {
        super(form);
    }

    @Deprecated
    public JspPage(IForm form, String jspFile) {
        super(form);
        this.setJspFile(jspFile);
    }

    public UIHeader getHeader() {
        if (header == null) {
            header = new UIHeader(this);
        }
        return header;
    }

    @Deprecated
    public UIFooter getFooter() {
        if(footer == null) {
            footer = new UIFooter(this);
            this.add(footer.getId(), footer);
        }
        return footer;
    }

    public UIToolbar getToolBar() {
        if (toolBar == null) {
            toolBar = new UIToolbar(this);
            this.add(toolBar.getId(), toolBar);
        }
        return toolBar;
    }

}

package cn.cerc.ui.page;

import cn.cerc.mis.core.IForm;
import cn.cerc.ui.core.JspFile;
import cn.cerc.ui.parts.UIFooter;
import cn.cerc.ui.parts.UIHeader;
import cn.cerc.ui.parts.UIToolbar;

public class JspPage extends JspFile {
    // 头部：广告+菜单
    private UIHeader header;
    // FIXME 此处调用不合理，为保障编译通过先保留 2021/3/14
    private UIToolbar toolBar;
    // FIXME 此处调用不合理，为保障编译通过先保留 2021/3/14
    private UIFooter footer;
    
    public JspPage() {
        super();
    }

    public JspPage(IForm form) {
        super(form);
    }

    @Deprecated
    public JspPage(IForm form, String jspFile) {
        super(form);
        this.setJspFile(jspFile);
    }

    @Deprecated
    public UIHeader getHeader() {
        if (header == null) {
            header = new UIHeader(this);
        }
        return header;
    }

    @Deprecated
    public UIFooter getFooter() {
        if(footer == null) {
            footer = new UIFooter(this);
            this.add(footer.getId(), footer);
        }
        return footer;
    }

    @Deprecated
    public UIToolbar getToolBar() {
        if (toolBar == null) {
            toolBar = new UIToolbar(this);
            this.add(toolBar.getId(), toolBar);
        }
        return toolBar;
    }

}

Update JspPage.java