<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN" "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
<taglib>
<tlib-version>1.0</tlib-version>
<jsp-version>1.2</jsp-version>
<short-name>numen</short-name>
<!--OutputTag-->
<tag>
<name>out</name>
<tag-class>cn.cityyouth.util.NumenTag</tag-class>
<body-content>empty</body-content>
<attribute>
<name>url</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>result</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>params</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
</taglib>
3.js
<%@ page contentType="text/html; charset=utf-8"%>
<%@ include file="/common/taglibs.jsp"%>
<%@ taglib uri="/WEB-INF/numentag.tld" prefix="n"%>
<html>
<head>
</head>
<body>
<table>
<tr><td>
<n:out url="test.do" result="result" params="${type}"/>
</td></tr>
</table>
</body>
</html>
http://blog.csdn.net/numen_wlm/archive/2007/01/30/1497778.aspx
评论加载中…
![]() |