jstl-api和jstl-impl之间的区别 [英] difference between jstl-api and jstl-impl

查看:1059
本文介绍了jstl-api和jstl-impl之间的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Java EE技术的初学者。我想知道 jstl-api jar和 jstl-impl jar之间有什么区别。

I'm a beginner in Java EE technologies. I wonder what the difference is between the jstl-api jar and the jstl-impl jar.

为什么API和实现是分开的?这是否意味着还有其他可用的实现?

Why are the API and implementation separated? Does it mean there are other implementations available?

推荐答案

API和实现是分开的,因为Java EE使用标准化规范。

The API and implementation are separated, because Java EE works with a standardized specification.

API是该规范的一部分,并且包含一组主要接口,参与创建所述规范的每个人都同意这些接口。从理论上讲,每个人都可以创建一个实现已发布的标准化API的实现,其行为与相关的规范文档中描述的相同。当您通过所谓的TCK(技术合规工具包)时,您可以将您的实施称为认证。

The API is part of that specification, and contains a set of mostly interfaces to which everybody that participated in creating said specification agreed. In theory everyone can make an implementation that implements the published standardized API and behaves as described in the associated specification document. You are allowed to call your implementation "certified" when it passes the so-called TCK (Technical Compliance Kit).

此规范系统的既定目标是鼓励竞争,同时受保护的用户形式被锁定到任何特定的实现。

It's a stated goal of this specification system to encourage competition, while at the same protected users form being locked-in to any specific implementation.

JSTL特别是JSP规范的一部分,该规范是在 JSR 245 。如果您想自己实现,请先阅读规范文档

JSTL in particular is part of the JSP spec, which has been developed under JSR 245. If you would like to make your own implementation, you'd begin with reading the spec document.


你能指点我解释如何为jstl编写我们自己的impl吗?

Could you point me to any tutorials that explain how to write our own impl for jstl?

据我所知,没有具体的教程可以创建自己的Java EE规范实现。几乎在所有情况下,它几乎都是专家工作,而且通常只由少数几个组织或个人执行。虽然David Blevins(TomEE成名)给我们偶尔一瞥与此有关的工作,但这种材料并不适合像教程一样的写作。

There are as far as I know no specific tutorials for creating your own implementation of whatever Java EE specification. It's in nearly all cases pretty much an expert job, and a job which is typically only carried out by a select few organizations or individuals. This kind of material doesn't really lend itself to tutorial-like write ups, although David Blevins (of TomEE fame) has given us the occasional glimpse in the work that is approximately involved with this.

这篇关于jstl-api和jstl-impl之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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