Wrox Home  
Search P2P Archive for: Go

  Return to Index  

apache_tomcat thread: Problem with JSTL tags


Message #1 by harinder.ryatt@a... on Mon, 24 Mar 2003 13:11:48 +0000
Hi,

I deployed a JSP with some JSTL tags in it (see code below), but keep 
getting the following error message at run time:

MonitorFilter::ServletException
MonitorFilter::A web application object caused an exception
MonitorFilter::org.apache.jasper.JasperException: This absolute uri 
(http://java.sun.com/jstl/core) cannot be resolved in either web.xml or 
the jar files deployed with this application

Am I missing an entry in the web.xml file? If so, what should it be?

Any suggestions would be most welcome.

Thanks in advance.

Harinder


JSP Code:

<%@page contentType="text/html"%>
<html>
<head>
    <title>CD Catalog List</title>
 

</head>
<%@taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%@taglib prefix="sql" uri="http://java.sun.com/jstl/sql" %>
<body>
 
    <h1> CD Catalog List </h1>
    <sql:setDataSource  var="productDS"
                        url="jdbc:pointbase:server://localhost/cdshopcart"
                        driver="com.pointbase.jdbc.jdbcUniversalDriver"
                        user="PBPUBLIC"
                        password="PBPUBLIC" />

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

    <TABLE border=1>
        <TR>
                <TH>ID</TH>
                <TH>CD Title</TH>
                <TH>Artist</TH>
                <TH>Country</TH>
                <TH>Price</TH>
        </TR>
        <c:forEach var="row" items="${productQuery.rows}" >
                <TR>
                        <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>
                        <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 value="${row.CDTITLE}"/>">
                                <input type=hidden name=cdPrice 
value="<c:out value="${row.PRICE}"/>">
                                <input type=submit name=operation 
value=Add>
                            </form>
                        </TD>
                 </TR>
         </c:forEach>
    </TABLE>


    <%-- <jsp:useBean id="beanInstanceName" scope="session" 
class="package.class" /> --%>
    <%-- <jsp:getProperty name="beanInstanceName"  property="propertyName" 
/> --%>

</body>
</html>


Harinder 

  Return to Index