Javatpoint Logo

how to resolve 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 exception

By: rashmi*** On: Fri Feb 26 17:52:37 IST 2016     Question Reputation0 Answer Reputation0 Quiz Belt Series Points0  0Blank User
here is my servlet and jsp code

ArrayList<StatusTO> category =dao.displayBookings();
HttpSession ses=req.getSession();
ses.setAttribute("category",category);
req.getRequestDispatcher("./newbookings.jsp").forward(req,res);



booking.jsp


<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ page import="java.util.ArrayList" %>
<%@ page import="com.cluster.to.StatusTO" %>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ taglib uri="http://java.sun.com/jstl/sql" prefix="sql" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta name="keywords" content="css templates, fortune website, CSS, HTML" />
<meta name="description" content="Fortune Template is a free css template from templatemo.com" />

<link href="../css/userhome.css" rel="stylesheet" type="text/css" />
</head>
<body>
<%
ArrayList <StatusTO> str1=new ArrayList <StatusTO>();

if (request.getSession().getAttribute("category") != null) {
str1 = (ArrayList ) request.getSession().getAttribute("category");
out.println(str1);
}

%>



i need to display arraylist values from servlet in jsp but i am getting this exception even i added all the jar files....help me to come out from this....


Up0Down