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

查看:39
本文介绍了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标准.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 jars.

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天全站免登陆