📄 label.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 + -