Wendy Smoak wrote:
On 8/21/06, maya <[EMAIL PROTECTED]> wrote:

yes, that helped, thank you very much...  I managed to figure out which
one to download here,
http://jakarta.apache.org/site/downloads/downloads_taglibs-standard.cgi

... so you're using JSTL 1.1

followed all instructions in my book (created webapp "jstltest", created
web.xml acc. to instructions, put .tld's where they belong, plus the
jars (jstl.jar, standard.jar, which I put in tomcat/common/lib (I usu.
put all jars in tomcat/common/lib,

In general, unless you have a good reason to use the common/shared
directories, placing jars *only* in WEB-INF/lib is a better choice.

but in this case put also in
jstltest/WEB-INF/lib because am getting error as described below, just
in case, but that did not help..).. created test.jsp, as instructed
(contains just

<%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c"%>
<c:out value="Congratulations, JSTL is working!"/>
   )

That isn't the right uri for JSTL 1.1.  It should be:
<%@ taglib uri="http://java.sun.com/jsp/jstl/core"; prefix="c" %>

however, when start tomcat, get this error for this webapp:

I think you're mixing and matching Servlet and JSTL versions incorrectly.

What are the first few lines of your web.xml?

There are some notes here to help people sort out which version of
JSTL to use...  ignore the Struts-related parts and see if it helps:
http://wiki.apache.org/struts/StrutsAndJSTL

HTH,

Wendy, thank you very much for your help.. I'm using Tomcat 5, so I figured had to use JSTL 1.1..

first lines of web.xml are as follows:

<?xml version="1.0"?>
<web-app xmlns="http://java.sun.com/xml/ns/javaee";
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd";
         version="2.5">

(as per instructions in book..)

my Servlet API is 2.4.. so looking on pg you pointed out, put this on top of web.xml:

<web-app xmlns="http://java.sun.com/xml/ns/j2ee";
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
 xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
                     http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";
            version="2.4">

also changed URI for JSTL 1.1 like you said, so now in JSP have:

<%@ taglib uri="http://java.sun.com/jsp/jstl/core"; prefix="c" %>
<c:out value="Congratulations, JSTL is working!"/>

still, get exact same error..  oh brother, I don't get this..

(actually the guy says in book he's using Tomcat 5.5 (which I know is for java sdk 1.5, I'm using tomcat 5.0.23 or something, and sdk 1.4, but since am on Tomcat 5 figured JSTL 1.1 would be ok..)

(this pg refers to Struts, though.. I'm not using Struts, have never used Struts.. )

again, thank you very much..



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to