1. HTML comment
<! -- Comment [<% = expression %>] -->
2. Hide comments
<% -- Comment content -- %>
3. JSP Declaration
<%! Declare 1 declaration; [declare 2 Declaration;]... %>
4. Include command
<% @ Include file = "url. jsp" %>
5. Page command (all are optional)
<% @ Page
Language = "Java"
Extends = "package. Class"
Import = "package. Class | package .*"
Session = "True | false"
Buffer = "None | 8kb | sizekb"
Autoflish = "True | false"
Isthreadsafe = "True | false"
Info = "text"
Errorpage = "errorpageurl"
Iserrorpage = "True | false"
Contenttype = "text/html; charset = GBK"
%>
6. <JSP: usebean
Id = "beaninstancename"
Scope = "Page | request | session | application"
Class = "package. Class"
Type = "package. Class"
Beanname = "package. Class | <% = Exception %>"
/>
7. <JSP: getproperty name = "bean name" property = "bean property name"/>
8. <JSP: setproperty name = "bean name" property = "bean property name"/>
9. You can use scriptlet to declare the variables and methods to be used, expressions, use any implicit objects, and use any <JSP: usebean>
Declared object
<%CodeBody %>
10. taglib command
<% @ Taglib uri = "unique name" prefix = "relative or absolute path" %>
11. <JSP: plugin> command
<JSP: plugin
Type = "bean | applet"
Code = "classfilename"
[Name = "instancename"]
[Archive = "urltoarchive"]
[Align = "bottom | top | Middle | left | right"]
[Height = "PX"]
[Width = "PX"]
[Hspace = "PX"]
[Vspace = "PX"]
[Jreversion = ""]
[Nspluginurl = ""]
[Iepluginurl = ""]
>
[<JSP: Params
[<JSP: paramname = "name" value = "value"/>] +
</Jsp: Params>]
</Jsp: plugin>
12. <JSP: Forward page = "url"> directs an HTML file, JSP file, orProgramFragment
13.