This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
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 REST with Spring (video course) this week in the Spring 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: 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="" %>
<%@ taglib prefix="c" uri=" " %>
<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="" />
<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=" " %>
into <%@ taglib prefix="c" uri="" %>

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:
subject: taglib uri cannot be resolved
It's not a secret anymore!