File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
StevenJ Johnson
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic