• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Very basic question about using JSTL

 
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please help.

I do not know how to install JSTL.

Just starting to learn JSTL

This is what I did

I copied "jstl.jar" from "C:\apache-tomcat-6.0.18\apache-tomcat-6.0.18\webapps\examples\WEB-INF\lib" and placed in under ".....\MyProjects\JSTLTest\web\WEB-INF"

Then created a file index.jsp


But it says that "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"
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have you installed the JSTL jar files where the web app can find them, and configured your web app correctly? http://faq.javaranch.com/java/ElOrJstlNotWorkingAsExpected and the pages it links to tell you everything you need to know about downloading and setting up JSTL in your web app.
 
Oprah Thaddeus
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Ulf Dittmer wrote:Have you installed the JSTL jar files where the web app can find them, and configured your web app correctly? http://faq.javaranch.com/java/ElOrJstlNotWorkingAsExpected and the pages it links to tell you everything you need to know about downloading and setting up JSTL in your web app.



I have right now copied both "jstl-impl-1.2.jar and jstl-api-1.2.jar" under ".....\MyProjects\JSTLTest\web\WEB-INF" . Still the same problem.

 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
WEB-INF is not the place to put jar files; WEB-INF/lib is. Have you configured the web app for JSTL 1.2 as described on those pages?
 
Oprah Thaddeus
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Ulf Dittmer wrote:WEB-INF is not the place to put jar files; WEB-INF/lib is. Have you configured the web app for JSTL 1.2 as described on those pages?



Now working. I created a lib folder under WEB-INF. and placed the jar files there
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic