tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scott Taylor" <>
Subject Tag List
Date Fri, 14 Feb 2003 17:31:28 GMT
I am trying to find a list of tags to help me modify the CD Shop Cart web
application from Sun One.

For example, how do I insert tags that provide a search form (and entry
form) rather than simply list everything.

Here is what the code looks like so far:

<%@page contentType="text/html"%>
<head><title>CD Catalog List</title></head>
<%@ taglib prefix="c" uri="" %>
<%@ taglib prefix="sql" uri="" %>
<h1> CD Catalog List </h1>
<sql:setDataSource var="productDS"
       user="scott" password="" />

<sql:query var="productQuery"  dataSource="${productDS}"  >
        SELECT * FROM CD

<TABLE border=1>
    <TH>CD Title</TH>

<c:forEach var="row" items="${productQuery.rows}">
    <TD><c:out value="${row.ID}"/></TD>
    <TD><c:out value="${row.CDTITLE}"/></TD>
    <TD><c:out value="${row.ARTIST}"/></TD>
    <TD><c:out value="${row.COUNTRY}"/></TD>
    <TD><c:out value="${row.PRICE}"/></TD>
    <form method=get action="ShopCart.jsp">
      <input type=hidden name=cdId value="<c:out value="${row.ID}"/>">
      <input type=hidden name=cdTitle value="<c:out
      <input type=hidden name=cdPrice value="<c:out value="${row.PRICE}"/>">
      <input type=submit name=operation value=Add>



To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message