| 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: 56224
|
|
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.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About 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: 56224
|
|
But EL is not working.
Under JSP 1.2 the EL is confined to specified attributes of JSTL tags.
|
 |
 |
|
|
subject: JSTL Error cannot be resolved
|
|
|