Advantages and disadvantages of JSP
Disadvantages:
1. JSP technology greatly increases product complexity. to obtain the system's cross-platform Functions and product scaling capabilities, java has developed a variety of products, such as JRE, JDK, J2EE, EJB, JSWDK, and JavaBeans, only by effectively combining them can powerful functions be produced. (deployment is difficult)
2. java's efficient operation requires a large amount of memory and hard disk space. on the one hand, java runs at high speed through. class file resident memory. on the other hand, hard disk space is also required to store a series. java files and. class file and the corresponding version file. (High hardware requirements)
3. JSP program debugging is difficult.
The JSP page is first converted. java file (Servlet), and then. the java file is compiled into a bytecode file. in this way, the error information actually points to the converted one. java file (Servlet), rather than JSP itself. (debugging is difficult)
Advantages:
1. JSP code is compiled once across platforms and runs everywhere
As we all know, due to Microsoft's monopoly, its product portability is very poor, and ASP is no exception,
2. JSP component cross-platform
JSP components (Enterprise JavaBeans, JavaBeans, or custom JSP labels) are reusable across platforms. enterprise JavaBeans components can access traditional databases and work in the distributed system mode on Solaris, Linux, UNIX, and Windows platforms.
3. Support for multiple webpage formats
Currently, there is no clear standard for the webpage format supported by JSP technology. in general, JSP technology supports both HTML and DHTML traditional Browser file formats and WML file formats used for web page previewing by wireless communication devices such as mobile phones and PDAs, other B2B e-commerce websites can also be used in XML format.
4. JSP tag scalability
Although ASP and JSP both use label and script technology to create dynamic Web pages, JSP technology allows developers to expand JSP tags and customize JSP tag libraries, therefore, web page makers make full use of the powerful XML-compatible tag technology to greatly reduce the dependency on scripting languages. the custom tag technology reduces the complexity of making webpages.
5. robustness and security
Since JSP pages use a java scripting language, it has all the advantages of java technology, including robust storage management and security.