(1) /WEB_INF.tld /WEB_INF/lib (2) /WEB_INF/web.xml (3) <%@ taglib prefix= MyTag %> <MyTag> </MyTag>
<taglib> <taglib-uri> http://{tag library }/taglibs/{library} </ taglib-uri> <taglib-location>/web_inf/{ } </taglib-location> </taglib> <taglib> <taglib-uri>http://java.sun.com/jstl/core</taglib-uri> <taglib-location>/web-inf/c.tld</taglib-location> </taglib>
<%@ taglib uri="http://{tag library } /taglibs/{library} prefix= tagprefix %> <%@ taglib uri="http://contactjsp.com/bar-1.0" prefix="bar" %>
Tag : <tagprefix: = /> Tag : <tagprefix: = >. </tagprefix: > <bar:hbar values="7,4,12" fgcolor="#0000ff" width="220 labels="orange, Apple, Pear" bgcolor="#00ff00" />
7 <%@ taglib uri="http://honey.kwangju.ac.kr/~syj" prefix= ssu" %> 8 <ssu:hello> </ssu:hello>
<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd"> <web-app> <taglib> <taglib-uri>http://jakarta.apache.org/taglibs/datetime-1.0</taglib-uri> <taglib-location>/web-inf/datetime.tld</taglib-location> </taglib> <taglib> <taglib-uri>http://contactjsp.com/bar-1.0</taglib-uri> <taglib-location>/web-inf/taglib5.tld</taglib-location> </taglib> <taglib> <taglib-uri>http://contactjsp.com/custom-taglib</taglib-uri> <taglib-location>/web-inf/contact-taglib.tld</taglib-location> </taglib> </web-app>
<?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.2</tlibversion> <jspversion>1.1</jspversion> <shortname>bar</shortname> <uri>http://coldjava.hypermart.net/servlets/bar</uri> <info>bar charts</info> <tag> <name>hbar</name> <tagclass>com.cj.bar.hbar</tagclass> <bodycontent>empty</bodycontent> <info>horizontal bar</info> <attribute> <name>width</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute>
<attribute> <name>values</name> <required>true</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>labels</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> </tag> </taglib>
<%@ page contenttype="text/html; charset=euc-kr" %> <%@ taglib uri="http://contactjsp.com/bar-1.0" prefix="bar" %> <br><bar:hbar values="7,4,12" fgcolor="#0000ff" width="220" labels="orange, Apple, Pear" bgcolor="#00ff00" />
2 <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
6 <c:if test="${2 > 1}"> 7 <c:out value="2 > 1"/> 10 <c:if test="${2 == 1}"> 11 <c:out value="2 == 1"/>
2 <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %> 3 <%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %> 4 <fmt:requestencoding value="ksc5601"/> 8 <c:foreach var="h" items="${header}"> 9 <li> <c:out value="${h.key}"/> : 10 <c:out value="${h.value}" />
8 <c:set var="t" value="${param.t}"/> 9 <c:if test="${empty t}"> 10 <c:set var="t" value="5"/> 12 <c:foreach var="a" begin="1" end="9" step="1"> 14 <c:out value="${a * t}"/> <br>
2 <script language="javascript" src="check.js"> 6 if(!isid(form.id)) { 7 alert("id."); 8 return false; 10 if(!issame(form.password, form.password2)) { 11 alert("."); 22 return true;
7 <c:out value="${param.id}"/> 8 <c:out value="${param.password}" />
2 <%@ page import="user" %> 6 <jsp:usebean id="user" class="user"/> 7 <jsp:setproperty name="user" property="*"/> 10 <li><c:out value="${user.id}"/>
6 <jsp:usebean id="user" class="user" scope="application"/>
2 <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %> 3 <%@ taglib prefix="sql" uri="http://java.sun.com/jstl/sql" %>
5 <sql:setdatasource var="ds" 6 driver="org.gjt.mm.mysql.driver" 7 url="jdbc:mysql://localhost/gbook?useunicode=true& characterencoding=ksc5601"/> 9 <sql:query datasource="${ds}" var="rs" 10 maxrows="2" startrow="${param.start}"> 11 select * from book order by num desc 12 </sql:query> 20 <c:foreach var="row" items="${rs.rows}"> 21 <tr bgcolor="e7a068"><td> : <c:out value="${row.name}"/> 29 <c:set var="last" value="${row.num}"/>
35 <c:if test="${last > 1}"> 36 <td><a href=greader2.jsp?start=<c:out value="${last}"/>>
3 <%@ taglib prefix="x" uri="http://java.sun.com/jstl/xml" %> 9 <c:set var="xml"> 10 <greeting> 11.
12 </greeting> 13 </c:set> 15 <x:parse var="p" xml="${xml}" /> 16 <x:out select="$p/greeting"/>