Java Servlet and JSP

Source: Internet
Author: User

 

 

ServletIs a server-side Java application.ProgramIs independent of platform and protocol and can generate dynamic web pages.It serves as the intermediate layer between customer requests (Web browsers or other HTTP client programs) and server responses (databases or applications on the HTTP server. Servlet is a Java application on the server inside the Web server. Unlike the traditional Java application started from the command line, servlet is loaded by the Web server, the Web server must contain a Java virtual machine that supports servlet.

 

 

Assumerver pages (JSP)It is a technology that implements mixed coding of common static html and dynamic HTML,JSP does not add any functions that cannot be implemented by Servlet in essence.

 

 

However, it is more convenient to write static HTML in JSP, So you no longer need to use the println statement to output each line of HTMLCode. More importantly, with the separation of content and appearance, different types of tasks in page creation can be easily separated: for example, HTML design is performed by page designers, at the same time, it also sets aside space for servlet programmers to insert dynamic content.

Related Article

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.