Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Very basic question about using JSTL

 
Swagato Bhatta
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • 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"
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • 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.
 
Swagato Bhatta
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • 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: 42967
73
  • Mark post as helpful
  • send pies
  • 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?
 
Swagato Bhatta
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic