如何使 JSTL 核心标签在 RAD6.0 中工作?
我使用的是 RAD 6.0,我已将 jstl.jar 放在应用程序的 lib 文件夹下。当我使用 JSTL 标签时,它不会给出任何编译错误。但是当我尝试运行该应用程序时,核心标签不起作用。
I am using RAD 6.0, where I have put jstl.jar under the lib folder in my application. When I am using the JSTL tags, it does not give any copilation errors. But when I am trying to run the application, the core tags are not working.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
RAD 6 / WAS 6 是针对 Servlet 2.4 的。因此:
确保您已包含 JSTL 1.1 在 web 应用程序的类路径(
/WEB-INF/lib
文件夹)中。确保您按照 JSTL 1.1 tlddoc(单击任意库即可查看它们)。例如
特别注意路径中存在
/jsp
,并且名称中不存在_rt
前缀。确保您已按照 Servlet 2.4 规范声明
web.xml
(因此不是 Servlet 2.3 或更早版本)。RAD 6 / WAS 6 is Servlet 2.4 targeted. Thus:
Ensure that you've included both
jstl.jar
andstandard.jar
of JSTL 1.1 in webapp's classpath (the/WEB-INF/lib
folder).Ensure that you're declaring taglibs in top of JSP files as per JSTL 1.1 tlddoc (click any of libs to see them). E.g.
Especially note presence of
/jsp
in path and also the absence of the_rt
prefix in name.Ensure you've declared
web.xml
as per Servlet 2.4 spec (and thus not as Servlet 2.3 or older).您应该将 jstl.jar 添加到特定项目的“项目属性”中的 Java 构建路径。
请注意,Java 构建路径和 MANIFEST.MF(对于运行时类路径)可能在某些时候不同步。因此,最好使用同样支持WebSphere Application Server 6.0 的Rational Application Developer 7.0 或7.5。
此外,Rational Application Developer 6.0 已经不再支持:
http://www-111.ibm.com/software/support/lifecycle/PLCDetail.wss?brand=rational&synkey=W170532D29019M02- L603472G19375Q17-M054243E02973V75&synkey=W170532D29019M02-L603472G19375Q17-R377236X92964B60&synkey=W170532D29019M02-T872435L 09150T44-O941388U48112Q95&ibm-view=View+details
本网站上的帖子是我自己的,并不一定代表立场、策略或IBM的意见
You should add the jstl.jar to the Java Build Path in the Project Properties of the particular project.
Be aware that Java Build Path and MANIFEST.MF (for runtime Classpath) can get out-of-sync at some point. Therefore it is better to use Rational Application Developer 7.0 or 7.5 which also support WebSphere Application Server 6.0.
Also, Rational Application Developer 6.0 is out-of-support already:
http://www-111.ibm.com/software/support/lifecycle/PLCDetail.wss?brand=rational&synkey=W170532D29019M02-L603472G19375Q17-M054243E02973V75&synkey=W170532D29019M02-L603472G19375Q17-R377236X92964B60&synkey=W170532D29019M02-T872435L09150T44-O941388U48112Q95&ibm-view=View+details
The postings on this site are my own and do not necessarily represent the positions, strategies, or opinions of IBM