tw.com.javaworld.CH15.Hello (Java2HTML)

| Hello.java |

    1 package tw.com.javaworld.CH15;
    2
    3 import javax.servlet.jsp.*;
    4 import javax.servlet.jsp.tagext.*;
    5 import java.io.*;
    6
    7 public class Hello extends TagSupport {
    8
    9     public int doStartTag() {
    10        try {
    11            JspWriter out = pageContext.getOut();
    12            out.println("Hello World Use Tag Library");
    13        } catch (Exception e) {
    14            System.out.println("Hello Tag Error :" + e);
    15        }
    16        return (SKIP_BODY);
    17    }
    18}