Beginner needs some help with JSP...

I recently decided that I wanted to learn JSP. I have a background in j2se, and coldfusion. I downloaded and installed tomcat 6, and got a book called Beginning JSP 2, however, I am finding that none of the examples in the book seem to work with tomcat 6, it appears that it was designed for tomcat 5.0.16... anyways I am having trouble with the taglib directive... I am trying to do something really really simple like this:

<%@ taglib uri="" prefix="c" %>
   <c:redirect url="">

Anyways can someone please point me in the direction of a good online JSP Tutorial, or recommend a good book to learn from, and possibly tell me how to get the above example to work?

Worth 500 points.

Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

rrzConnect With a Mentor Commented:
Download the Standard 1.1 Taglib 
and read this, 
Basically, put the two jars in <yourTomcatHome>\lib
               and use this on the top of your JSP.
<%@ taglib uri="" prefix="c" %>
richardsimnettAuthor Commented:
ok.... one last question and I will give you the points. I am also trying to use the SQL JSTL package, and not having any luck... How do I get it to work cuz I get the following error:

HTTP Status 500 -

type Exception report


description The server encountered an internal error () that prevented it from fulfilling this request.


org.apache.jasper.JasperException: /opencatch.jsp(20,0) Attribute datasource invalid for tag query according to TLD

Also how do I determine the # of rows returned by a query? Here is my code so far:

<%@ taglib uri="" prefix="c" %>
<%@ taglib uri="" prefix="sql" %>

<c:forEach var="entry" items="${header}">
        Key: ${entry.key}<br>
        Value: ${entry.value}<br><br>

<!---- execute database update ---->
<sql:setDataSource var="ds"
     user="root" password="test" />

<sql:query var="login" datasource="${ds}">
        select * from users where username='${param.username}' and password='${param.password}'

<h1>Database Access</h1>
UserID: ${}


richardsimnettAuthor Commented:
nevermind I got it.

All Courses

From novice to tech pro — start learning today.