This week's book giveaway is in the General Computing forum.
We're giving away four copies of Learning Regular Expressions and have Ben Forta on-line!
See this thread for details.
Win a copy of Learning Regular Expressions this week in the General Computing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

problem with JSTL  RSS feed

Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friends....

I am trying to test JSTL but encountering some error with uri which we are mentioning in our jsp.
Here is the code

HTML file :


<h1 align="center">Movie Page </h1>
<form method="POST" action="">
<select name="movie" size="1">
<input type="SUBMIT">

Servlet File: JSTLSelect
package com;

import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;

* @version 1.0
* @author
public class JSTLSelect extends HttpServlet {

public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
PrintWriter out = response.getWriter();
out.println("JSLT Testing");
String[] movieList = {"mv-1", "mv-2", "mv-3", "mv-4" };
RequestDispatcher view = request.getRequestDispatcher("JSTL_jsp.jsp");



<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ taglib prefix="c" uri="" %>
<%@ page
contentType="text/html; charset=ISO-8859-1"
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<META name="GENERATOR" content="IBM WebSphere Studio">
<P>Place content here.</P>
<c:forEach var="movie" items="${movieList}">
<td> ${movie}</td>

My web.xml

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "">
<web-app xmlns="" xmlns:xsi="" xsi:schemaLocation=" web-app_2_4.xsd" id="WebApp" version="2.4">




Error which I am getting is as follows :

HTTP Status 500 -

type Exception report


description The server encountered an internal error () that prevented it from fulfilling this request.


org.apache.jasper.JasperException: The absolute uri: cannot be resolved in either web.xml or the jar files deployed with this application
at org.apache.jasper.compiler.DefaultErrorHandler.jspError(
at org.apache.jasper.compiler.ErrorDispatcher.dispatch(
at org.apache.jasper.compiler.ErrorDispatcher.jspError(
at org.apache.jasper.compiler.TagLibraryInfoImpl.generateTLDLocation(
at org.apache.jasper.compiler.TagLibraryInfoImpl.(
at org.apache.jasper.compiler.Parser.parseTaglibDirective(
at org.apache.jasper.compiler.Parser.parseDirective(
at org.apache.jasper.compiler.Parser.parseElements(
at org.apache.jasper.compiler.Parser.parse(
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
just check with the taglib element in the web.xml..
the error given is that no absolute path found in web.xml or in any jar just give a try specifiying
<taglib-location>http:\\..ur abosolute uri here</taglib-location?
in web.xml...and in the jsp page..where you import <%@ taglib uri="coretags" ....%>
so here it checks coretags with the absolute uri you have given in the taglib-location.....
this procedure we generally do for custom tags..but for jstl..once we include the neccessary files..there is no need for this the container does automatically ..looks for its required files just give a try..if it works.....hope i am clear..

Posts: 14691
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Vandu, no offense, but I'm not sure you know what you are talking about

it seems that your container does not find the uri to the jstl taglib.
Make sure that standard.jar and jstl.jar are in your lib directory.

I think you'll find the following FAQ useful :
Puja Verma
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got the output

The problem was the absence of JAR files. I have added them and my program is working fine.. .
Thanks for your help..
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!