Java EE和(JSP和Servlet)之间的差异是什么? [重复]

时间:2022-02-22 20:08:04

Possible Duplicate:
Relationship between JSP and Java EE

可能重复:JSP和Java EE之间的关系

I am working with JSP and Servlets but I always come across Java EE as a fully different thing. So can someone help and explain the difference?

我正在使用JSP和Servlets,但我总是认为Java EE是一个完全不同的东西。那么有人可以帮助并解释其中的差异吗?

4 个解决方案

#1


0  

Java Enterprise Edition (By the way J2EE is and old way to call it. Since version 5, the Java EE acronym is used.) is the official stack of technologies designed for enterprise programming in Java. It's currently maintained by Oracle Corporation. It's released separately from Java Standard Edition. You can see the list of technologies Java EE brings about here. Both Servlets and JSP are part of Java EE stack of technologies.

Java企业版(顺便说一句,J2EE是旧的称呼方式。从版本5开始,使用Java EE的缩写。)是为Java中的企业编程设计的官方技术堆栈。它目前由Oracle Corporation维护。它与Java Standard Edition分开发布。您可以在此处查看Java EE带来的技术列表。 Servlet和JSP都是Java EE技术堆栈的一部分。

#2


1  

Java EE is a plateform that contains different tools, mainly used to create distribued and multi-tiered application. basically it's a set of API and containers. It's long to explain what is the Java EE plateform, I've read this documentation to know more about this wide technology.

Java EE是一个包含不同工具的平台,主要用于创建分布式和多层应用程序。基本上它是一组API和容器。很难解释什么是Java EE平台,我已阅读此文档以了解有关此广泛技术的更多信息。

Servlet is a part of JavaEE, it's a type of class used to send and receive HTTP request. JSP are a special kind of servlet integrated in an HTML page.

Servlet是JavaEE的一部分,它是一种用于发送和接收HTTP请求的类。 JSP是一种集成在HTML页面中的特殊servlet。

#3


1  

well, JSP and servlets are themselves part of Java EE. Let's understand Java EE in some casual terms.

好吧,JSP和servlet本身就是Java EE的一部分。让我们以一些随意的方式理解Java EE。

  1. If you writing your own server, deploying it on a port and running it and clients open socket connection with it and interacting with it, then its Core Java. However, if you are using some server like JBoss, Apache Tomcat, then it's Java EE. Because you deploy your application on them and run it, that's it, you don't need to worry about all underlying details.

    如果您编写自己的服务器,将其部署在端口上并运行它,并且客户端打开它与它的套接字连接并与之交互,那么它的核心Java。但是,如果您使用的是JBoss,Apache Tomcat等服务器,那么它就是Java EE。因为您在它们上部署应用程序并运行它,就是这样,您不必担心所有底层细节。

  2. If you writing your own logic on server side to process every single bit of information from clients, then It's core Java. But if you using servlets API, utilizing pre-cooked request and response objects then it's Java EE.

    如果您在服务器端编写自己的逻辑来处理来自客户端的每一点信息,那么它就是核心Java。但是如果您使用servlet API,利用预先准备好的请求和响应对象,那么它就是Java EE。

#4


0  

Java EE is a Java Enterprise Edition (specifications) which contains a lot of technologies. The platform provides an API and runtime environment for developing and running enterprise software, including network and web services, and other large-scale, multi-tiered, scalable, reliable, and secure network applications.

Java EE是Java Enterprise Edition(规范),其中包含许多技术。该平台提供API和运行时环境,用于开发和运行企业软件,包括网络和Web服务,以及其他大规模,多层,可扩展,可靠和安全的网络应用程序。

Java Servlets is a basic mechanism to create web application. Actually, servlet is a Java class used to extend the capabilities of servers that host applications access via a request-response programming model. Although servlets can respond to any type of request, they are commonly used to extend the applications hosted by Web servers.

Java Servlets是创建Web应用程序的基本机制。实际上,servlet是一个Java类,用于通过请求 - 响应编程模型扩展托管应用程序访问的服务器的功能。尽管servlet可以响应任何类型的请求,但它们通常用于扩展Web服务器托管的应用程序。

JavaServer Pages (JSP) technology provides a simplified, fast way to create dynamic web content. JSP technology enables rapid development of web-based applications that are server- and platform-independent.

JavaServer Pages(JSP)技术提供了一种简化,快速的方法来创建动态Web内容。 JSP技术可以快速开发独立于服务器和平台的基于Web的应用程序。

JavaServer Pages Standard Tag Library (JSTL) is a component of the Java EE Web application development platform. It extends the JSP specification by adding a tag library of JSP tags for common tasks, such as XML data processing, conditional execution, loops and internationalization.

JavaServer Pages标准标记库(JSTL)是Java EE Web应用程序开发平台的一个组件。它通过为常见任务添加JSP标记的标记库来扩展JSP规范,例如XML数据处理,条件执行,循环和国际化。

#1


0  

Java Enterprise Edition (By the way J2EE is and old way to call it. Since version 5, the Java EE acronym is used.) is the official stack of technologies designed for enterprise programming in Java. It's currently maintained by Oracle Corporation. It's released separately from Java Standard Edition. You can see the list of technologies Java EE brings about here. Both Servlets and JSP are part of Java EE stack of technologies.

Java企业版(顺便说一句,J2EE是旧的称呼方式。从版本5开始,使用Java EE的缩写。)是为Java中的企业编程设计的官方技术堆栈。它目前由Oracle Corporation维护。它与Java Standard Edition分开发布。您可以在此处查看Java EE带来的技术列表。 Servlet和JSP都是Java EE技术堆栈的一部分。

#2


1  

Java EE is a plateform that contains different tools, mainly used to create distribued and multi-tiered application. basically it's a set of API and containers. It's long to explain what is the Java EE plateform, I've read this documentation to know more about this wide technology.

Java EE是一个包含不同工具的平台,主要用于创建分布式和多层应用程序。基本上它是一组API和容器。很难解释什么是Java EE平台,我已阅读此文档以了解有关此广泛技术的更多信息。

Servlet is a part of JavaEE, it's a type of class used to send and receive HTTP request. JSP are a special kind of servlet integrated in an HTML page.

Servlet是JavaEE的一部分,它是一种用于发送和接收HTTP请求的类。 JSP是一种集成在HTML页面中的特殊servlet。

#3


1  

well, JSP and servlets are themselves part of Java EE. Let's understand Java EE in some casual terms.

好吧,JSP和servlet本身就是Java EE的一部分。让我们以一些随意的方式理解Java EE。

  1. If you writing your own server, deploying it on a port and running it and clients open socket connection with it and interacting with it, then its Core Java. However, if you are using some server like JBoss, Apache Tomcat, then it's Java EE. Because you deploy your application on them and run it, that's it, you don't need to worry about all underlying details.

    如果您编写自己的服务器,将其部署在端口上并运行它,并且客户端打开它与它的套接字连接并与之交互,那么它的核心Java。但是,如果您使用的是JBoss,Apache Tomcat等服务器,那么它就是Java EE。因为您在它们上部署应用程序并运行它,就是这样,您不必担心所有底层细节。

  2. If you writing your own logic on server side to process every single bit of information from clients, then It's core Java. But if you using servlets API, utilizing pre-cooked request and response objects then it's Java EE.

    如果您在服务器端编写自己的逻辑来处理来自客户端的每一点信息,那么它就是核心Java。但是如果您使用servlet API,利用预先准备好的请求和响应对象,那么它就是Java EE。

#4


0  

Java EE is a Java Enterprise Edition (specifications) which contains a lot of technologies. The platform provides an API and runtime environment for developing and running enterprise software, including network and web services, and other large-scale, multi-tiered, scalable, reliable, and secure network applications.

Java EE是Java Enterprise Edition(规范),其中包含许多技术。该平台提供API和运行时环境,用于开发和运行企业软件,包括网络和Web服务,以及其他大规模,多层,可扩展,可靠和安全的网络应用程序。

Java Servlets is a basic mechanism to create web application. Actually, servlet is a Java class used to extend the capabilities of servers that host applications access via a request-response programming model. Although servlets can respond to any type of request, they are commonly used to extend the applications hosted by Web servers.

Java Servlets是创建Web应用程序的基本机制。实际上,servlet是一个Java类,用于通过请求 - 响应编程模型扩展托管应用程序访问的服务器的功能。尽管servlet可以响应任何类型的请求,但它们通常用于扩展Web服务器托管的应用程序。

JavaServer Pages (JSP) technology provides a simplified, fast way to create dynamic web content. JSP technology enables rapid development of web-based applications that are server- and platform-independent.

JavaServer Pages(JSP)技术提供了一种简化,快速的方法来创建动态Web内容。 JSP技术可以快速开发独立于服务器和平台的基于Web的应用程序。

JavaServer Pages Standard Tag Library (JSTL) is a component of the Java EE Web application development platform. It extends the JSP specification by adding a tag library of JSP tags for common tasks, such as XML data processing, conditional execution, loops and internationalization.

JavaServer Pages标准标记库(JSTL)是Java EE Web应用程序开发平台的一个组件。它通过为常见任务添加JSP标记的标记库来扩展JSP规范,例如XML数据处理,条件执行,循环和国际化。