JSP insider

zhaozj2021-02-16  171

The current enterprise application has been transferred from 2-Tier towards 3-Tier structures, and developers have many different ways to distribute applications and data to users. JSP API is part of J2EE, which provides a simple but powerful mechanism to create a variety of applications for Web and Java developers. JSP provides two important capabilities to developers: 1. It provides mechanisms to access remote data such as EJB, RMI, JDBC. Second, it allows developers to achieve maximum code reuse and flexibility from the logic of the performance from the performance. Separation of logic and performance is a major advantage that transcends other web application structures. In this article, I will have an overall description of JSP technology, of course, there will be some examples to demonstrate the advantages of JSP. First, how JSP is executed to support JSP, and the web server must have a corresponding configuration. The popular web server supported by JSP is: WebSphere, JWEBServer, JSWDK, JRUN, TOMCAT, and more. When the web server receives a request for the ".jsp" page, it triggers the JSP engine. The JSP engine first checks the JSP file is new or modified, and the file will be translated and compiled with the files. Translation is the core of how JSP works: The JSP engine takes a JSP file to convert it to Java servlet. Then use the standard JVA compiler to compile the servlet, and perform the Java Servlet using the standard API. This translation step is also a slow reason why JSP is slow.

Write a JSP an example of a JSP as follows:

sending to:

Your Comments: