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

JSP Introduction

JSP Introduction

What are Java Server Pages?

JSP stands for Java Server Pages, which is a dynamic web page development technology. It uses JSP tags to insert Java code into HTML web pages. Tags usually start with <% and end with %>.

JSP is a kind of Java servlet, mainly used to implement the user interface part of Java web applications. Web developers write JSPs by combining HTML code, XHTML code, XML elements, and embedded JSP actions and commands.

JSP obtains user input data through web forms, accesses databases and other data sources, and then dynamically creates web pages.

JSP tags have a variety of functions, such as accessing databases, recording user selection information, and accessing JavaBeans components; they can also pass control information and share information between different web pages.


Why use JSP?

JSP programs have similar functions to CGI programs, but compared with CGI programs, JSP programs have the following advantages:

Finally, JSP is an integral part of Java EE, a complete enterprise-level application platform. This means JSP can implement the most complex applications in the simplest way.


Advantages of JSP

The following lists other benefits of using JSP:


What's next?

We will guide you step by step to set up the JSP runtime environment, which requires a certain foundation in Java.

If you have not learned Java yet, you can first study theJava tutorial。