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.<init>(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網頁開啟將正常顯示。

 

 

參考或是複製語法時,別忘了留個言喔 ^ ^ ~