wood burning stoves 2.0*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Very basic question about using JSTL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Very basic question about using JSTL" Watch "Very basic question about using JSTL" New topic
Author

Very basic question about using JSTL

Swagato Bhatta
Ranch Hand

Joined: Nov 08, 2008
Posts: 72
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"

Working on my SCWCD so I can be a J2EE consultant earning millions of dollars and showing everyone I can
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41032
    
  43
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.


Ping & DNS - my free Android networking tools app
Swagato Bhatta
Ranch Hand

Joined: Nov 08, 2008
Posts: 72
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
Marshal

Joined: Mar 22, 2005
Posts: 41032
    
  43
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

Joined: Nov 08, 2008
Posts: 72
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Very basic question about using JSTL
 
Similar Threads
Problem with JSTL
If-Else In JSTL
Jsp Exception
From 2.4 to 2.3 . -- Errors
How to identify the correct uri for taglib