JasperException:绝对uri:无法解析http://java.sun.com/jsp/jstl/core [英] JasperException: absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved

查看:131
本文介绍了JasperException:绝对uri:无法解析http://java.sun.com/jsp/jstl/core的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的GoDaddy的服务器出现以下问题. 我正在将JSP与JSTL库一起使用.我的/WEB-INF/lib文件夹包含以下库:

I've been having the following problem with my GoDaddy's server. I am using JSPs with the JSTL Library. My /WEB-INF/lib folder contains the following libraries:

jstl.jar standard.jar

jstl.jar standard.jar

我的JSP看起来像这样:

My JSP looks something like this:

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<p>Hello!   <%
out.print(System.getProperty("java.class.path")); 

%></p>

但是我不断收到以下异常:

But I keep getting the following exception:

org.apache.jasper.JasperException: 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

关于为什么这样做的任何想法?

Any ideas as to why it is doing that?

推荐答案

您需要获取正确版本的JSTL,它们使用不同的URI.

You need to get the right version of JSTL, they use different URIs.

如果该工具不起作用,请尝试: http://download.java.net/maven/1/jstl/jars/jstl-1.2.jar (JSTL 1.2),或拉下1.1个JSTL jar.

If that one's not working, try: http://download.java.net/maven/1/jstl/jars/jstl-1.2.jar (JSTL 1.2), or pull down the 1.1 JSTL jars.

有关 coderanch的版本/URI的详细列表, .

这篇关于JasperException:绝对uri:无法解析http://java.sun.com/jsp/jstl/core的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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