1.准备自定义JAVABEAN文件
import java.io.IOException;
import javax.servlet.jsp.JspTagException;
import javax.servlet.jsp.tagext.TagSupport;
public class CustomTag extends TagSupport {
public int doEndTag() throws JspTagException
{
try {
pageContext.getOut().write("Hello word!");
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return EVAL_PAGE;