The JSP declaration used to craete one or more variable and methods that are used later in the jsp file. If you want to create variable or mathod then it is must contain at least one complete declarative statement.

Syntax:
<%! somedeclarations %>

Example:
<%! float i = 1.2; %>

Thanks

Ads

Post Answer

Preview:

Related Tutorials/Questions & Answers:

JSP DeclarationJSP Declaration What is a JSPDeclaration?. Explain it.
Hi,
The answer is:
The JSPdeclaration used to craete one or more variable and methods that are used later in the jsp file. If you want to create variable

DECLARATION IN JSPDECLARATION IN JSP
In this Section, we will discuss about declaration of variables & method in
JSP using declaration tags.
Using Declaration Tag, you... of the declaration is JSP page means
it is valid only in JSP page &amp

Advertisements

Declaration tagDeclaration tag Defined Declaration tag in JSPDeclaration in JSP is way to define global java variable and method. This java variable... does not reside inside service method of JSP.
Declaration tag is used to define

How to use multiple declaration in jsp
How to use multiple declaration in jsp
&nbsp...;/html>
Save this code as a .jsp file named "multi_declaration... this jsp page with url http://localhost:8080/user/multi_declaration_jsp.jsp
in address

array declaration
array declaration what is the difference between declaration of these two things integer[] i={1,2,3,4,5} and integer i[]={1,2,3,4,5

array declaration
array declaration String propArray = [];
is this declaration correct?
Hi Friend,
No, This is the wrong way.
Array is declared in the following way:
String arr[]={};
For more more information, visit the following

Array Declaration
Array Declaration
In this Tutorial we want to describe you a code that helps you in
Understanding Array Declaration. For this we are using JavaScript

Namespace Declaration
Namespace Declaration:
The term namespace is very much common in OOP based language, basically it is
a collection of classes, objects and functions. Namespaces are one of the new
feature in PHP 5.3.0. Naming collision of
classes

Creating a Local Variable in JSP
Creating a Local Variable in JSP
In jsp when we have to create a method or variable we
usually declare it inside the declaration tag. If we declare

Creating a Local Variable in JSP
Creating a Local Variable in JSP
In jsp when we have to create a method or variable we
usually declare it inside the declaration tag. If we declare it inside the
declaration directive

JSP Simple Examples
Objects
EL is the JSP 2.0 Expression Language Interpreter from...
Conditional Content on a JSP Page
We make use of the condition... in JSP
An exception can occur if you trying to connect to a database

Jsp - JSP-Interview Questions
Jsp Hi,
if i declare in declaration & same in scriptlets... should i make use of declaration tag if i can declare variable in scriptlets tag... in the scriptlet, it is gone to the service method when jsp converted into servlet

JSP TagsJSP Tags Defined JSP Tags?
Tags are a vital concept in Java Server Pages (JSP). Below is a list of tags used in JSP. This section discusses Declaration Tag and Expression Tag in detail; syntax, usage with examples

Jsp declarative tags - JSP-Servlet
into the class label variable.
means the declaration in jsp where it will translated...Jsp declarative tags Hi sir,
I want to know the difference between declaring a variable in declaration tag and scriptlet tag?
what

jsp - JSP-Interview Questions
jsp what are the thinks in el (jsp) nesseay to take care wel... expressions in JSP. EL provides the ability to use run-time expressions outside JSP scripting elements. Scripting elements are those elements which is used

JSP
what is JSP forward tag for what is JSP forward tag for
It forwards the current request to another JSP page. Below is the syntax for the same:-
<jsp:forward page="...url..." />
We can also forward parameter