Comparison between JSP and ASP. PHP. Currently, the three most common dynamic web page languages are ASP (ActiveServerPages), PHP (HyperTextPreprocessor), and JSP (assumerverpages ). JSP and ASP can be embedded into HTML programs. However, currently, ASP (Active Server Pages) and PHP (HyperText Preprocessor) are the three most commonly used dynamic web page languages) and JSP (Java Server Pages ).
JSP and ASP can be embedded into HTML programs, but they are essentially different.
(1) WEB server support
Most common WEB servers, such as Apache, Netscape, and MicrosoftIIS, support JSP pages. only Microsoft MicrosoftIIS and Personal Web Server support ASP.
(2) support for the platform
JSP is platform independent, as long as Java programs can run on the platform support JSP programs. The Windows Platform Supports ASP, but the dependency of ASP on the Win32 model makes it difficult to transplant it to other platforms.
(3) component model
JSP is built on reusable and cross-platform components, while ASP uses the Win32 COM component model.
(4) scripting language
JSP can use Java programming language or JavaScript as the scripting language, while ASP uses VBScript or Jscript as the scripting language.
(5) Security
JSP uses the Java security model, while ASP uses the WindowsNT security architecture.
(6) connection to the Access Database
JSP uses JDBC to establish a connection to the Access database, while ASP uses Data Acitve Object
(7) custom tags
JSP can be expanded using a custom tag library, but ASP does not have a custom tag library, and cannot be expanded.
(8) efficiency
In the database test, JSP and ASP respectively execute 1000 Insert Update Delete operations in Oracle8. JSP takes 13 seconds, while ASP takes 73 seconds.
Comparison between JSP and PHP
JSP and PHP are both cross-platform languages that can be normally executed on Windows, UNIX, and Linux Web servers. They also support general WEB servers such as IIS and Apache. When you change the platform, you do not need to change the code. you can use it out of the box, but the two are essentially different.
(1) Applicability
JSP is suitable for large-scale e-commerce sites. it can be supported by SUN Java's Java Class and EJB, and structural support is obtained through EJB/CORBA and Application Server of many vendors, PHP lacks support of scale and multi-layer structure, and provides inconsistent database interface support, making it more suitable for some small commercial sites.
(2) database access
JSP through JDBC technology to connect to the database, if a specific database without JDBC driver, only ODBC driver, Java can provide a JDBC-ODBC Bridge to convert JDBC to ODBC call, PHP can be compiled into functions connected to multiple databases. it works perfectly with MySQL, and developers can write peripheral functions to indirectly access the database. However, the database interfaces they provide support different from each other, for example, they are different from those of Oracle, MySQL, and Sysbase.
(3) Efficiency
In the database test, JSP and ASP respectively execute 1000 Insert Update Delete operations in Oracle8. JSP takes 13 seconds, whereas PHP takes 69 seconds.
Among the three, JSP will be the trend of future development. some of the world's major e-commerce solution providers use JSP/Servlet. For example, IBM's E-business uses the JSP/Servlet Server WebSphere at the core.
Active Server Pages, PHP (HyperText Preprocessor), and JSP (Java Server Pages ). JSP and ASP can be embedded into HTML programs, but 2...