Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes JSP and the fly likes JSTL installation Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "JSTL installation" Watch "JSTL installation" New topic
Author

JSTL installation

Swapna Gouri Kalanidhi
Ranch Hand

Joined: Mar 14, 2008
Posts: 107
Hi Ranchers
I'm trying to install JSTL and have downloaded JSTL 1.1.2 version binaries. I have placed the jar files of the same in the lib folder of Tomcat @ C:\Program Files\Apache Software Foundation\Tomcat 6.0\lib. I have also placed the tld files in WEB-INF folder @ C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\ROOT\WEB-INF. Is this the right path where these files should be placed? And do I also need to update the web.xml with the tlds?

My Tomcat version is 6.0 but am not sure what my Servlet and JSP versions are. Where/how can I come to know their versions?


Thanks & Regards
Swapna Gouri
I "try", I "catch" and "finally" WIN !!!
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56205
    
  13

Remove the TLD files. Why did you extract them from the jar files? The container will find the TLD files inside the jars.

No TLD declarations in the deployment descriptor are necessary.

This is all covered in the JSP FAQ.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Swapna Gouri Kalanidhi
Ranch Hand

Joined: Mar 14, 2008
Posts: 107
Hi Bear
I have not extracted the tld files from the jar files. There was a folder called tld and I placed all the files in that folder. I have read it somewhere that we need to place the tld files in WEB-INF folder. Anyways I have removed them now. But the problem now is am getting an error on the browser, so I doubt if I had actually installed JSTL properly or not.

Here's the program and the error that's displayed on the browser.

And the error:


What could be the problem?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56205
    
  13

Your URI is incorrect. Check it again against the FAQs.
Swapna Gouri Kalanidhi
Ranch Hand

Joined: Mar 14, 2008
Posts: 107
Thanks Bear ! I got it !
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: JSTL installation
 
Similar Threads
Problems with bean example
context getAttribute code doubt
Log4j\Layout error
Servlets and relative file path io
Problem running simple Servlet on Tomcat