tw.com.javaworld.CH16.HelloSimpleTag (Java2HTML)

| HelloSimpleTag.java |

    1 package tw.com.javaworld.CH16;
    2
    3 import java.io.*;
    4 import javax.servlet.jsp.*;
    5 import javax.servlet.jsp.tagext.*;
    6
    7 public class HelloSimpleTag extends SimpleTagSupport {
    8
    9     public void doTag() throws JspException, IOException {
    10
    11        JspWriter out = getJspContext().getOut();
    12        out.println("Hello Simple Tag");
    13    }
    14}