【正文】
Tag Result HR/ CENTERH3 Current Time is: ics:time/ /H3/CENTER A Attribute Tag public class WordCount extends TagSupport { public void setInputname(String _inputname) { = _inputname。 } public int doEndTag() throws JspException { JspWriter out = ()。 try{if ((inputword==null)amp。(warnEmpty==true)) { …… A Attribute Tag else { StringTokenizer st = new StringTokenizer(inputword)。 (wordnumber)。 } return EVAL_PAGE。 public void setTimes(int _times) { if(_times0) { times = _times。 } } public int doStartTag() { if (times = 1) { String timeString = (times)。 return(EVAL_BODY_INCLUDE)。 } } BodyTagSupport Example public void doInitBody() { } public int doAfterBody() { if (times 1) { String timeString = (times)。 return(EVAL_BODY_AGAIN)。 } } } RowTag inside ListTag public class RowTag extends TagSupport { public int doStartTag() { try { JspWriter out = ()。 rowtime = ((String)().getAttribute(ListTagTime))。 } catch(IOException ioe) { (RowTag error)。 } } BodyTagSupport Example Result XML and Web Components Server Server Client Client Client DB RDMS EIS XMLDB XML EJB Servlet/Jsp Servlet/Jsp XML XML XML DOM/SAX Quer