为什么jstl无法正常工作? [英] Why jstl is not working?
问题描述
就像文章中一样,我将以下文件放置在我的应用程序的WEB-INF/lib文件夹中
Like in the article , I have placed the following files in WEB-INF/lib folder of my applicaion
- Standard.jar(1.1.2)
- jstl.jar(1.1.2)
在taglib中指出要解析部署在jar文件(WEB-INF/lib)中的taglib的TLD中的uri标签.
in taglib it states that it would resolve uri tag in the TLD of a taglib deployed in a jar file (WEB-INF/lib).
我的应用程序不断抛出错误,找不到任何标签库.
And my application keep throwing errors that it cannot found any tag libs.
当我将Standard.jar \ MET-INF * .tld文件提取到WEB-INF \ tld文件夹中时,它可以工作并进行排序.但是仍然有一种更干净的方法可以执行此操作,因此除了用新版本替换它之外,我可能不需要单独更新该标记库吗?
When I extracted the Standard.jar\MET-INF *.tld files under to WEB-INF\tld folder, It worked and sorted. But still is there a cleaner way I could do it, So I may not need to update that taglibs separately other than replacing it with the new version?
例外 org.apache.jasper.JasperException:绝对uri: http://java.sun.com/jsp /jstl/core 不能在web.xml或与此应用程序一起部署的jar文件中解析
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
推荐答案
您的构建路径中可能没有它们.将它们放在 libs 文件夹中可能还不够. 例如,在Eclipse中:右键单击项目-> 构建路径-> 配置构建路径... 然后在库"标签中,使用添加外部JAR 按钮添加您的jar.
You probably don't have them in your build path. Placing them in libs folder may not be sufficient. In Eclipse for example: right click on project -> Build Path -> Configure Build Path ... Then in Libraries tab add your jars using Add External JARs button.
这篇关于为什么jstl无法正常工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!