jsp自定义标签下拉框(5)
来源:未知 责任编辑:责任编辑 发表时间:2014-03-23 22:28 点击:次
}
public String getSelectName() {
return selectName;
}
public void setSelectName(String selectName) {
this.selectName = selectName;
}
public String getSelectId() {
return selectId;
}
public void setSelectId(String selectId) {
this.selectId = selectId;
}
}
[java]
<?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>s</short-name>
<uri>http://www.574394550.com</uri>
<tag>
<name>Select</name>
<tag-class>com.soft.test.MyTag</tag-class>
<body-content>empty</body-content>
<attribute>
<name>tableName</name>
<required>true</required>
</attribute>
<attribute>
<name>label</name>
<required>true</required>
</attribute>
<attribute>
<name>value</name>
<required>true</required>
</attribute>
<attribute>
<name>where</name>
<required>true</required>
</attribute>
<attribute>
<name>selectName</name>
<required>true</required>
</attribute>
<attribute>
<name>selectId</name>
<required>true</required>
</attribute>
</tag>
</taglib>
[java]
<%@ page language="java" pageEncoding="gbk"%>
<%@ taglib uri="http://www.2cto.com" prefix="s" %>
<%
String path = request.getContextPath();
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>My JSP 'index.jsp' starting page</title>
相关新闻>>
- 发表评论
-
- 最新评论 更多>>