• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSTL Error cannot be resolved

 
Prasad Yarehalli
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • 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.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • 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
  • 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
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64721
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • 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
  • 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
Author and ninkuma
Marshal
Pie
Posts: 64721
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But EL is not working.


Under JSP 1.2 the EL is confined to specified attributes of JSTL tags.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic