JSP basic syntax

xiaoxiao2021-03-06  97

In addition to some method calls, use Java code as little in your JSP page.

There are five JSP instructions and script elements. In JSP version 1.0, most JSP is enclosed in a marker that begins with "<%" and at the end of "%>". After the updated JSP 1.1 specification is introduced, there is a version with XML compatible. JSP instructions and scripting elements Directives <% @ Directive%> // Directive Declarations <%! Declaration%> // Declaration Expressions <% = expression%> // Expression Code Fragment / Scriptlet <% Code Fragment%> // Code Segment Comments <% - comment -%> // Note

转载请注明原文地址:https://www.9cbs.com/read-126003.html

New Post(0)