wood burning stoves 2.0*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes taglib uri  cannot be resolved Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "taglib uri  cannot be resolved " Watch "taglib uri  cannot be resolved " New topic

taglib uri cannot be resolved

Boobalan Pillai

Joined: Nov 01, 2006
Posts: 9

I am preparing for SCWCD.When tried to use few jstl tags in my application I am getting the following exception:

org.apache.jasper.JasperException: 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

This is the steps I followed

1)I put jstl.jar,standard.jar in WEB-INF/lib dir...
2)I put entry in web.xml like

3)In my jsp file looks like this
<%@ page import="test.com.web.Person" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core " %>
<c:set target="${Person}" property="firstName" value="Bala"/>
Person's firstName-:${Person.firstName}

I am guessing that server doent refering the any tld file in the lib dir...

Where would be the error?

Thanks in advance
Gowher Naik
Ranch Hand

Joined: Feb 07, 2005
Posts: 643
Try this
<jsp:useBean id="person" class="test.com.web.Person" />
<c:set target="${person}" property="firstName" value="Bala"/>
Person's firstName-:${person.firstName}
Christophe Verré

Joined: Nov 24, 2005
Posts: 14688


1. you don't need the taglib declaration in web.xml
2. Remove the extra space after "core" :
Change <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core " %>
into <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

See here for more:
[ November 07, 2006: Message edited by: Satou kurinosuke ]

[My Blog]
All roads lead to JavaRanch
I agree. Here's the link: http://aspose.com/file-tools
subject: taglib uri cannot be resolved