JSTL question

  • 主题发起人 主题发起人 LGers
  • 开始时间 开始时间

LGers

知名会员
注册
2005-01-06
消息
140
荣誉分数
12
声望点数
128
新手学jsp,作了个简单的例子,不行,请DX们指点:
JSP file:
〈%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %〉

〈html〉
〈body〉
hello
〈/body〉
〈/html〉

Error Message:
Parsing of JSP File '/taglibexample.jsp' failed: /taglibexample.jsp(1): Could not parse deployment descriptor: java.io.IOException: cannot resolve 'http://java.sun.com/jstl/core' into a valid tag library
probably occurred due to an error in /taglibexample.jsp line 1:
〈%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %〉


看了半天也没看出问题来。
 
Installing JSTL 1.0 Implementation - Standard Taglib 1.0.4

Standard Taglib 1.0.4 is Jakara Taglibs's open-source implementation of the JSP Standard Tag Library (JSTL) 1.0. I did the following to download the last release of Standard Taglib 1.0.4:

* Go to http://apache.towardex.com/jakarta/taglibs/standard-1.0/ and download jakarta-taglibs-standard-current.zip.
* Unzip it to \local directory, and read \local\jakarta-taglibs-standard-1.0.4\README.
* Then create a new directory in Tomcat server: "mkdir \local\jakarta-tomcat-4.1.18\webapps\ROOT\WEB-INF\lib" and copy jar files to there: "copy \local\jakarta-taglibs-standard-1.0.4\lib\*.jar \local\jakarta-tomcat-4.1.18\webapps\ROOT\WEB-INF\lib".
* Restart Tomcat, and you are ready to try Taglib 1.0.4.
 
谢谢hotdog.
你所指的路是对头的,已经发现问题。
多谢多谢。
 
后退
顶部