Joke Collection Website - Bulletin headlines - What elements does the screenplay identity in 3.jsp contain? What are their functions and grammatical formats?

What elements does the screenplay identity in 3.jsp contain? What are their functions and grammatical formats?

The script identifier in jsp contains the following five elements and syntax format:

1, JSP comments

& lt%-* * * * *-% & gt; Is a comment character that is not output to the client.

& lt%! -* * * * * *-% & gt; Comment characters output to the client.

2. Instruction elements

& lt%@ page contenttype = "text/html"% > Sets the specified page content type.

& lt%@ includes ...%> files introduced in the translation stage.

& lt%@ Tag Library ...%> Declares the tag library used by pages that contain custom behaviors.

3. Behavior elements

& ltJSP:useBean & gt; Make JavaBeans components available in this page.

& ltJSP:set property & gt; Set the property value of JavaBeans

& ltJSP:forward & gt; Transfer the processing of the request to a servlet or JSP page.

4. Script elements

& lt% This is a scriptlet%> embedded script code.

Expression element

& lt%= This is an expression% "; Embedded java expression

5. Method declaration

& lt%! string a =“ 1“; %> is used to declare variables and methods in the implementation class of JSP pages.