📄 basictag.java
字号:
/*
* Created on 2007-2-1
* Last modified on 2007-2-1
* Powered by YeQiangWei.com
*/
package com.yeqiangwei.club.view.tag;
import java.io.IOException;
import javax.servlet.jsp.JspTagException;
import javax.servlet.jsp.tagext.TagSupport;
@SuppressWarnings("unused")
public class BasicTag extends TagSupport{
/**
*
*/
private static final long serialVersionUID = 1L;
private String name = null;
private String type = null;
public void setName(String name) {
this.name = name;
}
public void setType(String type) {
this.type = type;
}
public int doStartTag() throws JspTagException{
return SKIP_BODY;
}
public int doEndTag() throws JspTagException{
StringBuffer sb = new StringBuffer();
outWrite(sb);
sb.delete(0, sb.length());
return EVAL_PAGE;
}
public void outWrite(String s){
try {
pageContext.getOut().write(s);
} catch (IOException e) {
e.printStackTrace();
}
}
public void outWrite(StringBuffer s){
try {
pageContext.getOut().write(s.toString());
} catch (IOException e) {
e.printStackTrace();
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -