Simple JSP syntax

zhaozj2021-02-08  205

JavaServer Pages (JSP) Syntax Form

Element Description JSP Syntax HTML Comment Creates a visible comment on the client

Hide Note JSP file document, the client is not visible <% - Note -%> Declaration Declaring variables and methods in scripting languages ​​<%! Declaration; [Declaration] ...%> Expression Add Expression in scripting language <% = Expression%> Script Adds Script Section <% Script Code%> Contains Instructions Include Add One File <% @ include file = "related link"%> "page instruction definition of JSP Page Properties <% @ Page [Language = "Java"] [EXTENDS = "package.class"] [import = "{package.class | package. *}, ..."] [session = "true | false"] [info = "text"] [errorpage = "related link"] [contenttype = "{mimetype [; charset = characterset] | text / html; charset = ISO-8859-1}"] [iSerrorpage = "true | false" ]%> Label Indicates the prefix "prefix =" tag prefix "%> custom label Other tags

Tagprefix.name> Description: Normal body = must be black body = default slope = user definition | = or [] = option {} = need to choose ... = item list = Repeat

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

New Post(0)