This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Five Lines of Code and have Christian Clausen on-line!
See this thread for details.
Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

JSTL included in Tomcat?

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My searching has told me that JSTL comes with Tomcat in an examples directory? I am trying to find out if the files are already on our server and if so I can get our systems people to copy the files to the correct place and set it up globally. I don't see any jar files named jstl.jar or standard.jar. I did find /var/lib/tomcat5/webapps/jsp-examples/WEB-INF/lib/[jakarta-taglibs-core].jar and /var/lib/tomcat5/webapps/jsp-examples/WEB-INF/lib/[jakarta-taglibs-standard].jar (and yes they have the square brackets around them). Nothing else looks even remotely close to JSTL. We're running Tomcat 5.5
 
Sylvia Espe
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And now more searching has told me that it doesn't come with Tomcat.

So, let's assume it doesn't. I have already downloaded the jars, am I best to include them with my app and be included in my WAR file on deployment? or is there an advantage to having them globally installed on the Tomcat server? This server is just for my app, so there will be no other apps on it. Everything on the server is maintained through RedHat updates/upgrades, so I can't have anything wiped out if there's a Tomcat update or if Tomcat is updated to a newer version. In that respect, better to keep the jars within my app?
 
Marshal
Posts: 67415
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Place them in WEB-INF/lib for each app.
 
Sylvia Espe
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've done that now and I'm getting that common everybody that everybody gets "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 think this is normally caused by version issues?

It seems my servlet engine is 2.4, jsp engine 2.0 and Tomcat 5.5.23, so I downloaded JSTL 1.1. But in the web.xml for the project, the first line is this:

So, does that mean I should be using JSTL 1.0? or can I change my web.xml to use a 2.4 DTD? This is code I took over from another team which is why I am unfamiliar with the setup.
 
Sylvia Espe
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just went and looked on the server and it seems that the jar files didn't get copied to the WEB-INF/lib folder when deployed so I bet that's my issue. Will go and troubleshoot that.
 
Sylvia Espe
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Sylvia Espe wrote:I just went and looked on the server and it seems that the jar files didn't get copied to the WEB-INF/lib folder when deployed so I bet that's my issue. Will go and troubleshoot that.


Okay, the problem was PEBKAC. I have the jar files copying to the correct place on build now and it's all working.
 
Tongue wrestling. It's not what you think. And here, take this tiny ad. You'll need it.
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic