The first HELLOWORLD for HTML file
hEAD>
html>
The following is a server-based technology
The second is CGI written in C language.
#include
void main ()
{
Printf ("Content-Type: Text / HTML / N / N");
Printf ("
}
Compiled into HelloWorld.exe to access by http: // xxx.
The third is CGI written in Perl language.
Print "Content-Type: TEXT / HTML / N / N");
Print "
However, this doesn't have to be compiled, and the operation is explained directly by the Perl interpreter.
The fourth is to implement the ASP, it can be seen that he is more simpler than the CGI.
<%
Str = "HelloWorld"
%>
The fifth is the JSP implementation, it can be seen that the ASP is almost the same.
<%
String str = "helloworld";
%>
The difference between ASP and JSP is that the ASP is explained, and JSP is compiled into the first time.
SERVELET, no need to compile again, so JSP is fast than ASP.
If there is any mistake above, it is also desirable.