如何在Websphere中配置和使用jstl [英] how to configure and use jstl in websphere

查看:102
本文介绍了如何在Websphere中配置和使用jstl的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道如何在Websphere中配置jstl.我知道我们在web.xml中使用了taglib指令.我在哪里可以找到Websphere 5.1.2中的web.xml以及如何添加配置.

Does anybody know how to configure jstl in websphere. i know that we have use taglib directive in web.xml . where do i find web.xml in websphere 5.1.2 and how to add the configuration.

推荐答案

您根本不需要修改web.xml.确实有一些差劲的在线教程暗示了这一点,但是您绝对不能认真对待互联网上的所有内容.特别是不是roseindia.net和合作伙伴.

You don't need to modify web.xml at all. Some poor online tutorials indeed suggests that, but you must never take everything at the interwebs for serious. Especially not roseindia.net and consorts.

要安装JSTL,基本要做的就是以下两个 步骤:

To install JSTL, all you basically need to do are the following two steps:

  1. 下载此文件,解压缩,浏览到/lib并将两者 jstl.jarstandard.jar都放在Web应用程序的运行时类路径中.

  1. Download this file, unzip, browse to /lib and put both jstl.jar and standard.jar in the webapp's runtime classpath.

根据 JSTL文档声明任何标签库放在JSP文件的顶部.例如 JSTL核心:

Declare any of the taglibs as per the JSTL documentation in top of JSP file. For example JSTL core:

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

仅此而已.默认Webapp的运行时类路径包含在每个Webapp/WEB-INF/lib文件夹下.只需将JAR放在那里.

That's all. The default webapp's runtime classpath covers under each Webapp/WEB-INF/lib folder. Just drop the JAR's in there.

这篇关于如何在Websphere中配置和使用jstl的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆