JSPタグ・ライブラリ - 宣言タグ

この要素のJSP 1.2のバージョンの詳細は、次のURLの『JavaServerPages (JSP) 1.2 Syntax Reference』をオンラインで参照してください。http://java.sun.com/products/jsp/tags/tags.html

JSPページで使用されるスクリプト言語で有効なメソッドまたは変数を宣言する際に、JSP 2.0コア・タグ<%! declaration %>または <jsp:declaration>を使用します。メソッドまたは変数は、JSPページで使用する前に宣言する必要があります。

JSP構文

<%! declaration; [declaration;]%>

または

<jsp:declaration>
	code fragment [declaration;]
</jsp:declaration>

XML構文

<jsp:declaration>
	code fragment [declaration;]
</jsp:declaration>

タグの詳細は、Sun社の『JavaServer Pages Developer's Guide』を参照してください。

『JavaServerPages (JSP) 2.0 Syntax Reference』は、次のURLでオンラインで参照できます。
http://java.sun.com/products/jsp/syntax/2.0/syntaxref20.html


JSPページの操作