Compilation of JSP File '/login.jsp' failed:
--------------------------------------------------------------------------------
login.jsp:2:5: No tag library could be found with this URI. Possible causes could be that the URI is incorrect, or that there were errors during parsing of the .tld file.
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
^----^
login.jsp:2:5: No tag library could be found with this URI. Possible causes could be that the URI is incorrect, or that there were errors during parsing of the .tld file.
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
^----^
以前页面运行在tomcat里完全没有问题,现在换成weblogic就不行了,百度了一下,有种解决办法是把weblogic.xml里的 <wls:container-descriptor>
<wls:prefer-web-inf-classes>true</wls:prefer-web-inf-classes>
</wls:container-descriptor>
true改为false就行
但是我找了weblogic里所有的weblogic.xml没有一个有<wls:container-descriptor> 这对标签的啊,请教高手帮忙解决这个问题,谢谢!
--------------------------------------------------------------------------------
login.jsp:2:5: No tag library could be found with this URI. Possible causes could be that the URI is incorrect, or that there were errors during parsing of the .tld file.
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
^----^
login.jsp:2:5: No tag library could be found with this URI. Possible causes could be that the URI is incorrect, or that there were errors during parsing of the .tld file.
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
^----^
以前页面运行在tomcat里完全没有问题,现在换成weblogic就不行了,百度了一下,有种解决办法是把weblogic.xml里的 <wls:container-descriptor>
<wls:prefer-web-inf-classes>true</wls:prefer-web-inf-classes>
</wls:container-descriptor>
true改为false就行
但是我找了weblogic里所有的weblogic.xml没有一个有<wls:container-descriptor> 这对标签的啊,请教高手帮忙解决这个问题,谢谢!
weblogic8不支持jstl。
首先确保jar包是否已经导入工程了,tld是否已经存在了
如果用uri访问tld确保web.xml配置了tld的uri
<web-app version="2.5"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
<servlet>
<description>This is the description of my J2EE component</description>
<display-name>This is the display name of my J2EE component</display-name>
<servlet-name>LoginAction</servlet-name>
<servlet-class>Servlet.LoginAction</servlet-class>
</servlet> <servlet-mapping>
<servlet-name>LoginAction</servlet-name>
<url-pattern>/servlet/LoginAction</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>login.jsp</welcome-file>
</welcome-file-list>
</web-app>
我的WEB-INF下的lib文件夹是空的,这正常吗?tld是哪个?我是新手,不太懂,请高手指教!
在web.xml中配置taglib uri和location
不想多写了,具体看这个把
http://hi.baidu.com/seething/blog/item/a98df003919cec773912bb54.html