Basic J2EE concepts

Source: Internet
Author: User
Concept (concept) 1: Web-component

Web component is used to receive input HTTP requests. After some logic processing, it then provides various corresponding (response), Java Servlet, and JSP pages, or the Web Service terminal is Web compenent. The client sends an HTTP request to the Web server. The web server converts the request to httpservletrequestobject by using Servlet, JSP, and other technologies, deliver this object to a Web component, which can interact with the JavaBean Component or database. After interaction, the Web component then generates the httpserveltresponse object or forwards the request to another Web component. In any case, the Web component will generate an httpservletresponse object, the web server (usually servlet or JSP) convert this object into an HTTP Response and return it to the client.


The common Web component has two types and their differences:

1: Java Servlet server component is used to process requests and generate responses.

2: The assumerver page is used to generate dynamic web content and web-based services. It is also a server-side Technology (JSP is essentially servlet ).

Note: servlet is most suitable for service-oriented applications (implemented by Servlet in Web Service terminals) and presentation-oriented applications (Presentation-oriented ), for example, forwarding requests and processing context data. JSP pages are more suitable for text-based Markup languages such as HTML, Scalable Vector Graphics (SVG), WML (Wireless Markup Language), and XML.

2: Web Container) Concepts:It is used to support and serve the running platform of Web component. Web services that are easy to provide include request forwarding, security, concurrency, and lifecycle management. It also provides APIs for Web component to access naming, transactions, and emails.




 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.