Share on Google+Share on Google+

Raj Singh
JSP Declaration
1 Answer(s)      6 years and 6 months ago
Posted in : JSP-Interview Questions

What is a JSP Declaration?. Explain it.

Ads

View Answers

October 25, 2010 at 3:52 PM


Hi,

The answer is:

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










Related Tutorials/Questions & Answers:
JSP Declaration
JSP Declaration  What is a JSP Declaration?. Explain it.   Hi, The answer is: 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
DECLARATION IN JSP
DECLARATION 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 &
Advertisements
Declaration tag
Declaration tag   Defined Declaration tag in JSP    Declaration 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
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
How to use multiple declaration in jsp
How to use multiple declaration in jsp  ...;/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
variable declaration in c and c++
variable declaration in c and c++  Comparison and an example of variable declaration in C and C
track array declaration
track array declaration  how to track an array declaration in a input program
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 it inside the declaration directive
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
Method in Declaration Tag
;<TITLE>Declaration Tag in jsp - Methods</TITLE></HEAD> <...Method in Declaration Tag          In Jsp we define methods just like as declare
Emitting DOCTYPE Declaration while writing XML File
Emitting DOCTYPE Declaration while writing XML File  ... a DOCTYPE Declaration in a DOM document. JAXP (Java API for XML Processing... for Emitting DOCTYPE Declaration are described below:-DocumentBuilderFactory
JSP Simple Examples
JSP Simple Examples Index 1. Creating a String In jsp we create a string as we does in a java. In jsp we can declare it inside the declaration directive
How to declare a Combobox without using a string in its declaration?
How to declare a Combobox without using a string in its declaration?  What i mean to ask is how can i declare a combobox first and initialise the values later? For example JComboBox x= new JComboBox(); ... String s={"Alpha
jsp - JSP-Servlet
JSP declaration tag example  Can you give me a JSP declaration tag example
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 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 Tags
JSP 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 page - JSP-Servlet
jsp page  what are elemets and template data in jsp page??  Hi Friend, Template Data is a parameterized content that allows the JSP document to generate a response stream of characters. JSP Elements provides
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
Use Constructor in JSP
Use Constructor in JSP       This section illustrates you how to use constructors in jsp. Constructors are used to initialize the object. They are just like method declaration
Class and Method declaration and definitions
Class and Method declaration and definitions  ... directive.       Declaration of a simple class: MyClass.h...; } method declaration; method declaration; @end
Java Array declaration
Java Array declaration In this section you will learn how to declare array... declaration of variable of other type, array is declared and it has two parts, one... will hold an array. Similarly like above declaration you can declare array
arraylist declaration in java
This class is used to make an fixed sized as well as expandable array.  It allows to add any type of object. It is the implementation of the List interface Example of Java Arraylist Declaration import
Array declaration in Java
] Multidimensional Array Multidimensional arrays are arrays of arrays. Declaration of two... Java Array Declaration Java Array declaration Java Array Initialization
jsp
jsp  how to include two jsp page
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
Tutorials   
Java Spring Hibernate Struts Training why do not required application restart after jsp changes? How to use contentType Attribute in JSP? How to connect to MySQL in JSP? JSP Comment Types with example How to use ajax in jsp? How to access the database from JSP? how to show image as a link which path coming from database jsp netbeans javascript Logos on mail inbox. I want to update the multiple values of database depending on checkbox..? Please help me out.. jsp 18/04/2013 JSTL how to access element added via javascript dynamically using jsp code Electronic spreadsheets are useful in situation An E-mail protocol for storage JSP JSP JSP jsp servlets Exception: com.mysql.jdbc.Driver display data from database on selecting option of dropdownlist display data from database on selecting option of dropdownlist display data from database on selecting option of dropdownlist display data from database on selecting option of dropdownlist Jsp Query run command prompt from jsp program question for c++ please help me how to set up Netbeans for JSP 3 dropdown list from the database using JSP autocompletion in textfield fetching from database in jsp openning the pdf or doc file in same jsp EXT JS tt need coding JSp session time out how to display values from database into table using jsp how to set the class path variable in tomcat ? need help please online examination system mini project problem in writing coding. Please help me. How to read the body content of custom tag? need help...................please please help me jsp coding please. help me image upload Assertions I want to store the value of local variable into Global variable how to create customise shortcut keys in jsp?

Ads

 
Advertisement null

Ads