⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 label.java~1~

📁 源码/软件简介: 云网论坛1.1RC国际版是采用JSP开发的集论坛、CMS(网站内容管理系统)、博客、聊天室、商城、交友、语音灌水等于一体的门户式社区。拥有CWBBS ( Cloud Web BBS
💻 JAVA~1~
字号:
package com.redmoon.forum.ui;

import cn.js.fan.module.cms.DocumentMgr;
import javax.servlet.jsp.tagext.BodyTagSupport;
import cn.js.fan.module.cms.Leaf;
import javax.servlet.jsp.tagext.BodyContent;
import cn.js.fan.util.StrUtil;
import cn.js.fan.module.cms.DocumentTag;
import cn.js.fan.module.cms.Document;
import org.apache.log4j.Logger;

/**
 * <p>Title: </p>
 *
 * <p>Description: </p>
 *
 * <p>Copyright: Copyright (c) 2005</p>
 *
 * <p>Company: </p>
 *
 * @author not attributable
 * @version 1.0
 */

public class Label extends BodyTagSupport {
    int id = -1;
    String dirCode = "";

    Logger logger = Logger.getLogger(DocumentTag.class.getName());

    public Label() {
    }

    public void setId(String strid) {
        this.id = Integer.parseInt(strid);
    }

    public void setRes(String d) {
        this.dirCode = d;
    }

    /**
     * put your documentation comment here
     * @return
     */
    public int doEndTag() {
        try {
            pageContext.getOut().print("文件不存在!");
        } catch (Exception e) {
            logger.error(e.getMessage());
        }
        return EVAL_PAGE;
    }

    public Document getDoc(int id) {
        DocumentMgr docmgr = new DocumentMgr();
        Document doc = docmgr.getDocument(id);
        return doc;
    }

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -