Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

JSP Tutorial

JSP Tutorial

JSP is similar to languages such as PHP, ASP, and ASP.NET; it is a language that runs on the server side.

JSP (short for Java Server Pages) is a web technology standard advocated by Sun Microsystems and jointly created with the participation of many companies; it enables software developers to dynamically generate HTML, XML, or other formats of documents in response to client requests.

JSP technology uses the Java language as its scripting language, and JSP pages provide an interface to the entire server-side Java library unit to serve HTTP applications.

The file extension for JSP files is *.jsp.

WEB applications developed with JSP are cross-platform and can run on both Linux and Windows.


The First JSP Program

The first program in language learning is usually to output "Hello World"; the JSP code to output "Hello World" is as follows:



    
           第一个 JSP 程序
    
    
           <%
                  out.println("Hello World!");
           %>
    


Start Learning JSP

After understanding the basic concepts of JSP, let us nowbegin to learn JSPtogether.