Latest Tutorials| Questions and Answers|Ask Questions?|Site Map




Have Programming Question? Ask it here!
 
 
 


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


What is a JSP Declaration?. Explain it.


Advertisement
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
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
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
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 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 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 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
jsp
jsp  how jsp translated into servlets
JSP
JSP  How to run jsp program in eclipse
jsp
jsp  how to create jsp page
Jsp
Jsp  Can I implement interface in jsp
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
jsp
jsp  how to include two jsp page
jsp
jsp  write a code for jsp file generator to generate a jsp page automatically taking html page as input
jsp
jsp  how to create a table in oracle using jsp and the table name is entered in text feild of jsp page
JSP
JSP  Hi, What is JSP? What is the use of JSP? Thanks   Hi, JSP Stands for Java Server Pages. It is Java technology for developing web applications. JSP is very easy to learn and it allows the developers to use Java
jsp
jsp  how to connect the database with jsp using mysql   Hi Friend, Please visit the following links: http://www.roseindia.net/jsp/connectjspwith_mysql.shtml http://www.roseindia.net/jsp/Accessingdatabase-fromJSP.shtml
jsp
jsp   what is the basic necessities reguired for running jsp using JDBC bridge?? and how to write a jsp code to access the detail present in microsoft access pls send link regarding above
jsp
jsp  how to include google map in our jsp page
JSP
JSP   How to create CAPTCHA creation by using JSP? I need an code for CAPTCHA creation by using JSP...   You can create a captcha validation using jsp. Have a look at the following tutorial: Captcha Creation
jsp
jsp  how to write a servlet and jsp program for user login form
jsp
jsp  how to write a servlet and jsp program for user login form
jsp
jsp  how to pass jsp variable to an html page
JSP
JSP  relevant difference between servlet and jsp in 1 line
jsp
jsp  why jsp is translated into servlet?pls describe precisly
jsp
jsp  code for jsp automatic genration using html
jsp
jsp  how to write hindi in jsp and store in database as unicode
JSP
JSP  FILE UPLOAD-DOWNLOAD code USING JSP
jsp
jsp  how to delete data from database using jsp
jsp
jsp  I Want complete note on JSP servlet
jsp
jsp  how to upload image through csv format in jsp
JSP
What are JSP directives, page directives and include directives?  what are jsp directives? and what are page directives? and what are include directives? can you explain taglib directives?   JSP directives JSP
JSP
Can you explain jsp page life cycle what is el how does el search for an attribute in JSP  Can you explain jsp page life cycle what is el how does el...://www.roseindia.net/jsp/simple-jsp-example/LifeCycleOfJspPage.shtml http
Advertisements
 

 

 

DMCA.com