lianxi8.jsp
<%@ page contentType="text/html; charset=GB2312" %>
<%@ taglib tagdir="/WEB-INF/tags/ch3" prefix="ok" %>
<HTML><BODY BGCOLOR=#F0F8FF>
<TITLE>lianxi8</TITLE>
<table border=1>
<ok:Biaoge color="whitesmoke" name="姓名" tel="电话" email="email">
<ok:Biaoge color="cyan" name="张三" tel="12345678" email="ss@163.com"/>
<ok:Biaoge color="whitesmoke" name="李小花" tel="9876543" email="cc@163.com"/>
<ok:Biaoge color="cyan" name="孙六" tel="11223355" email="pp@163.com"/>
<ok:Biaoge color="whitesmoke" name="吴老二" tel="66553377" email="ee@163.com"/>
</ok:Biaoge>
</table>
</BODY>
</HTML>
Biaoge.tag
<%@ attribute name="color" %>
<%@ attribute name="name" %>
<%@ attribute name="tel" %>
<%@ attribute name="email" %>
<tr bgcolor="<%=color%>">
<td width=60><%=name%></td>
<td width=80><%=tel%></td>
<td width=80><%=email%></td>
</tr>
<jsp:doBody/>