db.tld

来自「JSP学习的好东东」· TLD 代码 · 共 50 行

TLD
50
字号
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE taglib
        PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN"
	"http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
<taglib>
 <tlibversion>1.0</tlibversion>
 <jspversion>1.1</jspversion>
 <shortname>db</shortname>
 <info>A Tag library for database usage.</info>
 
 <tag>
    <name>connect</name>
    <tagclass>ConnectTag</tagclass>
    <bodycontent>JSP</bodycontent>
    <info>Open a database connection and manage a Statement and ResultSet object.</info>
    <attribute>
        <name>url</name>
        <required>true</required>
        <rtexprvalue>true</rtexprvalue>
    </attribute>
 </tag>

 <tag>
    <name>runQuery</name>
    <tagclass>RunQueryTag</tagclass>
    <bodycontent>JSP</bodycontent>
    <info>Read and execute the SQL statement in the tag body.</info>
 </tag>

 <tag>
    <name>forEachRow</name>
    <tagclass>ForEachRowTag</tagclass>
    <bodycontent>JSP</bodycontent>
    <info>Iterate over the current result set.</info>
 </tag>

 <tag>
    <name>getField</name>
    <tagclass>GetFieldTag</tagclass>
    <bodycontent>empty</bodycontent>
    <info>Retrieve a field from the current result set row.</info>
    <attribute>
        <name>name</name>
        <required>true</required>
        <rtexprvalue>true</rtexprvalue>
    </attribute>
 </tag>
</taglib>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?