• 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

JSTL Error cannot be resolved

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i AM NEW TO JSTL. My JSP is as below.

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

I am getting following error.


WarningBroken Link - http://java.sun.com/jsp/jstl/coreMyJSP.jspJSPTest/WebContentline 2


ErrorJspTranslate: This absolute uri (http://java.sun.com/jsp/jstl/core) cannot be resolved in either web.xml or the jar files deployed with this application.
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You probably just don't have all of your jars in the right place.
This entry in the JSP FAQ should get you rolling.
http://faq.javaranch.com/view?JstlTagLibDefinitions
 
Prasad Yarehalli
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I HAVE COPIED jstl.jar AND standard.jar INTO WEB-INF/LIB FOLDER.
MY WEB.XML IS AS BELOW.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">

My JSP is as below.
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
I am stil getting same error

KindStatusPriorityDescriptionResourceIn FolderLocation
ErrorJspTranslate: This absolute uri (http://java.sun.com/jsp/jstl/core) cannot be resolved in either web.xml or the jar files deployed with this application.MyJSP.jspJSPTest/WebContentMyJSP.jsp
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What's version of JSP are you using? What versions of the JSTL jars did you copy?

The URI you are using indicates JSTL 1.1 which shoudl be used with JSP 2.0. Yet, your web.xml enables a servlets 2.3 app rather than a 2.4 app.

I think you may have mismatched versions of everything.

See the JSP FAQ for more info.
 
Prasad Yarehalli
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks, I down loaded JSTL 1.0 Jar files. It started working.
But EL is not working. Any Idea?

My servlet is 2.3, JSP 1.2, J2EE 1.3, JSTL 1.0

KindStatusPriorityDescriptionResourceIn FolderLocation
ErrorJspTranslate: Page directive: Invalid attribute, isELIgnored.MyJSP.jspJSPTest/WebContentline 6
 
Bear Bibeault
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

But EL is not working.



Under JSP 1.2 the EL is confined to specified attributes of JSTL tags.
 
Of course, I found a very beautiful couch. Definitely. And this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic