JSTL Tomcat 6.0找不到taglib描述符错误 [英] JSTL Tomcat 6.0 Cannot find the taglib descriptor Error

查看:90
本文介绍了JSTL Tomcat 6.0找不到taglib描述符错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Tomcat 6.0,并使用相同的红色下划线表示找不到"http://java.sun.com/jsp/jstl/core"的标记库描述符"

I am using Tomcat 6.0 and getting the same red underline saying "Can not find the tag library descriptor for "http://java.sun.com/jsp/jstl/core"

我具有带有taglib uri的基本index.jsp文件,如下所示:

I have the basic index.jsp file with the taglib uri as follows:

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

我已经在Tomcat和webapp文件夹下添加了jstl-1.2.jar

I have added the jstl-1.2.jar under both the Tomcat as well as my webapp folders

C:\...\apache-tomcat-6.0.35-windows-x64\apache-tomcat-6.0.35\webapps\ROOT\WEB-INF\lib
C:\...\workspace\<App-Name>\WebContent\WEB-INF\lib

我的web.xml文件如下所示,其中包含提到的网络应用规范

My web.xml file looks as below with the web-app specifications as mentioned

<?xml version="1.0" encoding="UTF-8"?>

<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">

标签库描述符仍然出现红色下划线错误.关于我所缺少的任何想法吗?

I am still getting the red underlined error for tag library descriptor. Any ideas on what I am missing out ?

谢谢

Somnath

推荐答案

要使用标签库,您需要添加standard.jarjstl.jar并添加到构建路径中

To use tag libraries you need to add standard.jar and jstl.jar and add to your buildpath

http://jstl.java.net/

这篇关于JSTL Tomcat 6.0找不到taglib描述符错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆