aspose file tools*
The moose likes JSP and the fly likes JSTL Error cannot be resolved Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "JSTL Error cannot be resolved" Watch "JSTL Error cannot be resolved" New topic
Author

JSTL Error cannot be resolved

Prasad Yarehalli
Greenhorn

Joined: Dec 08, 2005
Posts: 12
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

Joined: Dec 11, 2004
Posts: 13410

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


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Prasad Yarehalli
Greenhorn

Joined: Dec 08, 2005
Posts: 12
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

Joined: Jan 10, 2002
Posts: 61413
    
  67

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Prasad Yarehalli
Greenhorn

Joined: Dec 08, 2005
Posts: 12
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

Joined: Jan 10, 2002
Posts: 61413
    
  67

But EL is not working.


Under JSP 1.2 the EL is confined to specified attributes of JSTL tags.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSTL Error cannot be resolved