public class TagTest extends TagSupport {
private String name = "";
public int doStartTag() throws JspException {
try {
JspWriter out = pageContext.getOut();
out.println("Hello," + name + ".welcome to my first tag!");
} catch(IOException ex) {
}
return SKIP_BODY;
}
public void setName(String name) { // auto call
this.name = name;
}
} // end of class TagTest