package moreservlets.tags;

import javax.servlet.*;
import javax.servlet.jsp.*;
import javax.servlet.jsp.tagext.*;
import java.io.*;

/** Prints out a simple message. A TagLibraryValidator
 *  will enforce a nesting order for tags associated
 *  with this class.
 *  <P>
 *  Taken from More Servlets and JavaServer Pages
 *  from Prentice Hall and Sun Microsystems Press,
 *  http://www.moreservlets.com/.
 *  &copy; 2002 Marty Hall; may be freely used or adapted.
 */

public class OuterTag extends TagSupport {
  public int doStartTag() {
    try {
      JspWriter out = pageContext.getOut();
      out.print("OuterTag");
    } catch(IOException ioe) {
      System.out.println("Error printing OuterTag.");
    }
    return(EVAL_BODY_INCLUDE);
  }
}
