के लिए web.xml मैंने jstl के साथ कोडों का प्रयास किया। अपवादjstl
org.apache.jasper.JasperException है: पूर्ण uri: http://java.sun.com/jsp/jstl/core या तो web.xml या जार इस आवेदन
मैं ग्रहण का उपयोग कर रहा के साथ तैनात फाइलों में हल नहीं किया जा सकता है। मैंने jstl.jar
और standard.jar
जोड़ा। मुझे अब web.xml
में क्या देना चाहिए? मुझे नहीं पता कि <taglib>
में क्या देना है।
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<c:forEach var = "userName" items = "${name}">
<tr>
<td>${userName}</td>
</tr>
</c:forEach>
</body>
</html>
की लिब निर्देशिका में दिखता है आप किस सर्लेट कंटेनर का उपयोग कर रहे हैं? – skaffman
मैं टॉमकैट 6.0 – Sumithra
का उपयोग कर रहा हूं हमें एक उदाहरण जेएसपी दिखाएं – skaffman