HTTP Status 500 description The server encountered an internal error () that prevented it from fulfilling this request JSTL

HTTP Status 500 description The server encountered an internal error () that prevented it from fulfilling this request JSTL


在IE下使用Tomcat 6.0 执行JSP档时发生下述错误:

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: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:51)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:409)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:116)
org.apache.jasper.compiler.TagLibraryInfoImpl.generateTLDLocation(TagLibraryInfoImpl.java:315)
org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:148)
org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:431)
org.apache.jasper.compiler.Parser.parseDirective(Parser.java:494)
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1444)
org.apache.jasper.compiler.Parser.parse(Parser.java:138)
org.apache.jasper.compiler.ParserController.doParse(ParserController.java:216)
org.apache.jasper.compiler.ParserController.parse(ParserController.java:103)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:154)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:315)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:282)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:586)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

-----------------------------------------------------------------------------------------------------------------------------------------

请依照下述解决方式来问题排除,

1.可以到Apache Jakarta Project下载最新版本的JSTL档,载点如下

  http://jakarta.apache.org/site/downloads/downloads_taglibs-standard.cgi

  亦可直接由这下载jakarta-taglibs-standard-1.1.2.zip

2.下载完成后,解压缩,

  开启jakarta-taglibs-standard-1.1.2/lib 数据夹

  复制里面的jstl.jar和standard.jar文件到

  {Tomcat_Install}/lib 数据夹内。

3.重新启动Tomcat,再将jsp网页开启将正常显示。

参考或是复制语法时,别忘了留个言喔 ^ ^ ~