HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: The absolute uri: java.sun/jsp/jstl/core cannot be resolved in l or the jar files deployed with this application
    org.apache.jasperpiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:50)
    org.apache.jasperpiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:378)
    org.apache.jasperpiler.ErrorDispatcher.jspError(ErrorDispatcher.java:118)
    org.apache.ateTLDLocation(TagLibraryInfoImpl.java:316)
    org.apache.jasperpiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:147)
    org.apache.jasperpiler.Parser.parseTaglibDirective(Parser.java:418)
    org.apache.jasperpiler.Parser.parseDirective(Parser.java:483)
    org.apache.jasperpiler.Parser.parseElements(Parser.java:1539)
    org.apache.jasperpiler.Parser.parse(Parser.java:126)
    org.apache.jasperpiler.ParserController.doParse(ParserController.java:220)
    org.apache.jasperpiler.ParserController.parse(ParserController.java:101)
    org.apache.ateJava(Compiler.java:203)
    org.apache.jasperpiler.Compilerpile(Compiler.java:461)
    org.apache.jasperpiler.Compilerpile(Compiler.java:442)
    org.apache.jasperpiler.Compilerpile(Compiler.java:430)
    org.apache.jasper.JspCompilationContextpile(JspCompilationContext.java:511)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:274)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1085)
    org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:398)
    org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:241)
    org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
    org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
note The full stack trace of the root cause is available in the Tomcat logs.
java.sun/jsp/jstl/core cannot be resolved in l or the jar files deployed with this application

貌似你没把jstl使用的jar文件引入到项目中
myeclispe7.0的话直接左侧 【项目】 【右键】 【MyEclipse】 【add JSTL】

或者 【项目】 【右键】 【Bulid path】  【libraries】 【add external jars】到你下的jstl的两个jar文件
加了之后要重新发布下项目
跑到tomcat安装目录下 webapps中你发布项目下的lib文件夹里看看这两个jar在不在
复制standard.jar和jstl.jar文件到web-inf/lib目录在您的项目
这是因为你运行的代码里有的要改为本地文件才可以的! 
你可以把文中出现java.sun/jstl/sql 的地方换成你的 
服务器上jstl/sql的地址!
想用下jstl,用法如下:
报错结果:rg.apache.jasper.JasperException: The absolute uri: java.sun/jsp/jstl/core cannot be resolved in l or the jar files deployed with this application

l配置如下:
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="java.sun/xml/ns/javaee" xmlns:xsi="/2001/XMLSchema-instance" version="2.5" xsi:schemaLocation="java.sun/xml/ns/javaee java.sun/xml/ns/javaee/web-app_2_5.xsd">
  <taglib> 
  <taglib-uri>java.sun/jstl/fmt</taglib-uri> 
  <taglib-location>/WEB-INF/tlds/fmt.tld</taglib-location> 
 </taglib> 

<taglib> 
  <taglib-uri>java.sun/jstl/fmt-rt</taglib-uri> 
  <taglib-location>/WEB-INF/tlds/fmt-rt.tld</taglib-location> 
</taglib> 

<taglib> 
  <taglib-uri>java.sun/jstl/core</taglib-uri> 
  <taglib-location>/WEB-INF/tlds/c.tld</taglib-location> 
</taglib> 

<taglib> 
  <taglib-uri>java.sun/jstl/core-rt</taglib-uri> 
  <taglib-location>/WEB-INF/tlds/c-rt.tld</taglib-location> 
</taglib> 

<taglib> 
  <taglib-uri>java.sun/jstl/sql</taglib-uri> 
  <taglib-location>/WEB-INF/tlds/sql.tld</taglib-location> 
</taglib> 

<taglib> 
  <taglib-uri>java.sun/jstl/sql-rt</taglib-uri>  jstl条件标签
  <taglib-location>/WEB-INF/tlds/sql-rt.tld</taglib-location> 
</taglib> 

<taglib> 
  <taglib-uri>java.sun/jstl/x</taglib-uri> 
  <taglib-location>/WEB-INF/tlds/x.tld</taglib-location> 
</taglib> 

<taglib> 
  <taglib-uri>java.sun/jstl/x-rt</taglib-uri> 
  <taglib-location>/WEB-INF/tlds/x-rt.tld</taglib-location> 
</taglib> 
 
  <servlet>
  <servlet-name>action</servlet-name>
  <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
  <init-param>
  <param-name>config</param-name>
  <param-value>/l</param-value>
  </init-param>
  <init-param>
  <param-name>debug</param-name>
  <param-value>3</param-value>
  </init-param>
  <init-param>
  <param-name>detail</param-name>
  <param-value>3</param-value>
  </init-param>
  <load-on-startup>0</load-on-startup>
  </servlet>
  <servlet-mapping>
  <servlet-name>action</servlet-name>
  <url-pattern>*.do</url-pattern>
  </servlet-mapping>
  <welcome-file-list>
  <welcome-file>index.jsp</welcome-file>
  </welcome-file-list>
</web-app>

jsp页面
<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib uri="java.sun/jsp/jstl/core" prefix="c"%>

<%
String path = ContextPath();
String basePath = Scheme()+"://"+ServerName()+":"+ServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  <base href="<%=basePath%>">
   
  <title>My JSP 'display.jsp' starting page</title>
   
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0"> 
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->

  </head>
 
  <body>
  <c:forEach items="${requestScope['guestbook.display.list']}" var="article">
  <c:out value="${article.id}"/>
  <c:out value="${article.name}"/>
  <c:out value="${ail}"/>
  <c:out value="${article.phone}"/>
  <c:out value="${article.title}"/>
  <c:out value="${t}"/>
  <c:out value="${article.time}"/>
   
  </c:forEach>
 
  </body>
</html>
不知道为什么l :<taglib> 
  <taglib-uri>java.sun/jstl/fmt</taglib-uri> 
  <taglib-location>/WEB-INF/tlds/fmt.tld</taglib-location> 
 </taglib
起始处报错,程序运行报错:rg.apache.jasper.JasperException: The absolute uri: java.sun/jsp/jstl/core cannot be resolved in l or the jar files deployed with this application
我想是配置问题,大家都遇到过没有啊??

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。