jsp:源程序
<%@ page contentType="text/html; charset=gb2312" %>
<%@ taglib prefix="look" tagdir="/WEB-INF/tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <look:Show>
  北京奥运圆满成功!
  </look:show>
  <look:Show>
  I LOVE YOU!
  </look:Show>
  <look:Show>
  欢迎你!!
  </look:Show>
</html>
-----------------------------------------------
tag文件:
<body bgcolor=yellow><p>
<%
int size=1;
for(int i=1;i<=3;i++)
{
size=size+1;
%>
 <font size=<%=size%>>
<jsp:doBody />
</font>
<%
}
%>
</p></body>
-------------------------------------------------
type Exception reportmessage description The server encountered an internal error () that prevented it from fulfilling this request.exception org.apache.jasper.JasperException: /Example3_2.jsp(7,2) The end tag "&lt;/look:show" is unbalanced
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:132)
org.apache.jasper.compiler.Parser.checkUnbalancedEndTag(Parser.java:1588)
org.apache.jasper.compiler.Parser.parseElementsScriptless(Parser.java:1504)
org.apache.jasper.compiler.Parser.parseBody(Parser.java:1667)
org.apache.jasper.compiler.Parser.parseOptionalBody(Parser.java:1011)
org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1279)
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1456)
org.apache.jasper.compiler.Parser.parse(Parser.java:133)
org.apache.jasper.compiler.ParserController.doParse(ParserController.java:216)
org.apache.jasper.compiler.ParserController.parse(ParserController.java:103)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:153)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:314)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:294)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:281)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.16 logs.