Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > JSP Basics
|
JSP Basics Beginning-level questions on JSP. More advanced coders should post to Pro JSP.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the JSP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 14th, 2003, 09:39 PM
Registered User
 
Join Date: Dec 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default JSTL files problem

Hello,
   I am having an extremely hard time trying to find out where I can get the complete set of JSTL files. I went to http://jakarta.apache.org/builds/jak...ases/standard/ and I downloaded the latest and greatest version of jakarta-taglibs-standard-1.1.0-B1. The problem is, the files contained within the lib folder are missing some vital files that require me to compile the request header example (Beg JSP2.0 p. 43-Viewing Request Headers) There is a folder called old-dependencies that contains:
dom.jar
jaxp-api.jar
jdbc2_0-stdext.jar
sax.jar
xalan.jar
xercesIml.jar
jstl.jar
standard.jar

HOWEVER, where the heck is the:
jaxen-full.jar
saxpath.jar

It seems that when I run the request.jsp page, I only see a partial listing of information in the header column, and I see no informationlisted in the value column. Please advise. I am ready to pull my hair out!!!! Thanks!

            Wes

 
Old January 5th, 2004, 11:13 AM
Registered User
 
Join Date: Jan 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I downloaded the file you describe and copied the contents of "lib" from the archive to my project's WEB-INF/lib folder. I did have to change the uri on the taglib based on example code I found on another site. Here's code that I just entered that works on my system:

<%@ page language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE HTML PUBLIC "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<title>JSP</title>
</head>
<body>
    <c:forEach var="head" items="${header}">
        Header <b>${head.key}</b> contains <b>${head.value}</b><br />
    </c:forEach>
</body>
</html>

 
Old October 9th, 2004, 11:09 AM
Registered User
 
Join Date: Oct 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello,

I'm trying to do the same excercise but stuck on declaring the jstl tablib.

I tried using the following declarations:
1) <%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
2) <%@ tablib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>


Tomcat will then throw this error page:
org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application


I'm using Tomcat 5.0.28, J2SE (j2sdk-1_4_2_05-windows-i586-p.exe) and JSTL (jakarta-taglibs-standard-1.1.1.zip) on a Win98 system.

I've copied the contents of the jstl lib contents (i.e., jstl.jar and standard.jar)into my apps web-inf/lib folder.

Thanks in advance,

Mark

 
Old October 10th, 2004, 10:22 AM
Registered User
 
Join Date: Oct 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

This is a continuation to the post above. I found out that if I placed the same file in the Root folder, it works. But when I place the file in a separate folder, it doesn't work anymore.

-- Mark

 
Old June 20th, 2005, 03:29 AM
Registered User
 
Join Date: Jun 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

It works fine for me. i am using the following packages to build my programming platform:
j2sdk1.4.2_08
jakarata-tomcat-tomcat-5.0.28
jakarata-taglibs-standard-current

and the config directory:
/usr/local/jdk
/usr/local/jdk/tomcat5
/usr/local/jdk/jakarta-taglibs-standard-1.0.6

rightly run "Viewing Request Headers" example, following the below instructions:
1. create a folder called RequestHeaders under webapps
2. create a folder called WEB-INF under RequestHeaders
3. create a folder called lib under WEB-INF
4. copy all the JSTL files (jakarta-taglibs-standard-1.0.6/lib/) into the lib foler under WEB-INF
5. create a file called request.jsp under RequestHeaders Directory.

finally, open ur web browser, and navigate to http://localhost:8080/RequestHeaders/request.jsp, my screen as the below:

You sent the following request headers:
Header Value
accept-encoding gzip, deflate, compress;q=0.9
connection keep-alive
accept-language zh-cn, zh;q=0.50
host localhost:8080
accept-charset GB2312, utf-8;q=0.66, *;q=0.66
user-agent Mozilla/5.0 (X11; U; Linux i686; zh-CN; rv:1.2.1) Gecko/20030225
accept text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,video/x-mng,image/png,image/jpeg,image/gif;q=0.2,text/css,*/*;q=0.1
keep-alive 300

Quote:
quote:Originally posted by wechang
 Hello,
   I am having an extremely hard time trying to find out where I can get the complete set of JSTL files. I went to http://jakarta.apache.org/builds/jak...ases/standard/ and I downloaded the latest and greatest version of jakarta-taglibs-standard-1.1.0-B1. The problem is, the files contained within the lib folder are missing some vital files that require me to compile the request header example (Beg JSP2.0 p. 43-Viewing Request Headers) There is a folder called old-dependencies that contains:
dom.jar
jaxp-api.jar
jdbc2_0-stdext.jar
sax.jar
xalan.jar
xercesIml.jar
jstl.jar
standard.jar

HOWEVER, where the heck is the:
jaxen-full.jar
saxpath.jar

It seems that when I run the request.jsp page, I only see a partial listing of information in the header column, and I see no informationlisted in the value column. Please advise. I am ready to pull my hair out!!!! Thanks!

            Wes






Similar Threads
Thread Thread Starter Forum Replies Last Post
JSTL problem winsonkkp JSP Basics 3 August 9th, 2007 03:20 AM
jstl problem saeed JSP Basics 1 May 22nd, 2007 12:18 PM
jstl problem vivekkumar_23 Pro JSP 1 May 1st, 2007 04:30 AM
JSTL aadz5 JSP Basics 1 August 8th, 2005 08:26 AM
JSTL mrkhairy JSP Basics 5 August 8th, 2003 04:57 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.