• 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
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Rob Spoor
  • Henry Wong
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh
  • Jj Roberts

JSTL installation

 
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
Marshal
Posts: 67510
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Swapna Gouri Kalanidhi
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Marshal
Posts: 67510
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Your URI is incorrect. Check it again against the FAQs.
 
Swapna Gouri Kalanidhi
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Bear ! I got it !
 
Do you pee on your compost? Does this tiny ad?
SKIP - a book about connecting industrious people with elderly land owners
https://coderanch.com/t/skip-book
reply
    Bookmark Topic Watch Topic
  • New Topic