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.