Basic understanding of java web

Source: Internet
Author: User

Java Web can be roughly divided into two aspects: 1. Client 2. The communication between the server is the http protocol.

Java Web has four components: jsp, servlet, filter, and listener. They all have tomcat instantiation and are called as appropriate.

1. jsp: it is an implementation class subclass of httpservlet. we can write it in the form of a webpage. For the code in <%>, it is only a small part of the class method.

2. servlet: it is also an implementation class of httpservlet, but the methods and configurations in it need to be completed by the programmer, so that the next work can be handed over to tomcat.

3. filter: It mainly filters "request resources" (jsp, servlet, and filter, the operation is mainly used for "preprocessing" and "subsequent work" after processing. It needs to be customized and configured like servlet.

4. listener: listener for the relevant events of the application and session objects.



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.