File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes What jar files do I need to use jstl in my jsp on tomcat 6.0.24 ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "What jar files do I need to use jstl in my jsp on tomcat 6.0.24 ?" Watch "What jar files do I need to use jstl in my jsp on tomcat 6.0.24 ?" New topic
Author

What jar files do I need to use jstl in my jsp on tomcat 6.0.24 ?

StevenJ Johnson
Greenhorn

Joined: Jul 09, 2010
Posts: 1
Hello, I have been stuck on this for hours. I recently made a web app in netbeans 6.8 which was using Glassfish v3. I am now trying to put this app on a tomcat 6.0.24 server. I am using a tool called "winSCP" to transfer the files to the tomcat server that is not running on my machine. I have search all over the web for a solution but they all say different things regarding jar files and tld files etc.

I use these tags in the jsp pages that use jstl :

<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<%@taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql"%>

my web.xml begins with (if this helps??) :

<?xml version="1.0" encoding="UTF-8"?>

<web-app version="3.0" xmlns:sql="http://java.sun.com/jsp/jstl/sql" xmlns:c="http://java.sun.com/jsp/jstl/core" 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 http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">

And when I try and run the code from my browser, I get an error page that says http status 500

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 have jstl-1.2.jar in the WEB-INF folder.

Also, I never tried working with a server before outside of netbeans so maybe it might also be the way I drag n dropped the files over to ther tomcat directory. I copied the files from the "build" folder in my netbeans project and those are the files I drag and dropped. Then I put the jstl jar file into the WEB_INF folder.

Any help would be appreciated. Thank you
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41101
    
  45
These may help: http://faq.javaranch.com/java/JstlTagLibDefinitions, http://faq.javaranch.com/java/ElOrJstlNotWorkingAsExpected and http://faq.javaranch.com/java/ServletsWebXml

Note that TC 6 supports Servlet API 2.5/JSP 2.2, whereas GF 3 supports Servlet 3.0, so you'll need to change the web.xml file according to the ServletsWebXml page. (If you really *need* Servlet API 3.0, switch to TC 7, but you probably don't.)


Ping & DNS - my free Android networking tools app
 
 
subject: What jar files do I need to use jstl in my jsp on tomcat 6.0.24 ?
 
Similar Threads
JSTL - c:out escapeXml
JSTL problem with Struts 1.3
JSTL version causing exceptions?
Not able to access JSTL tags
According to TLD or attribute directive in tag file, attribute items does not accept any expressions