HOME
Java Server Pages
JSP
Introduction JSP
Syntax
JSP Expression
JSP Declaration
JSP Comments
JSP Directives
JSP Actions
JavaBeans
JSP Sessions
JSP JDBC
JSP And HTML Forms
JSP With XML
|
JSP Declaration
JSP Declaration are used to define methods or variable that are to be used in java code scriplets or expressions. For example
<%! Declaration %>
since declaration do not generate any output, they are usually used with JSP scriplets or expressions. For example
<%! Int i=0; %>
<%! Circle a=new circle(2,0); %>
a declaration element may contain any number of variable or methods. The declaration must be valid in the java programming language. A declaration has translation unit scope, so it is valid in the JSP page and any of nits static include files.
|

|
|
|