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



Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


Vijay Kumar
Declaration tag
1 Answer(s)      4 years and 2 months ago
Posted in : JSP-Interview Questions


Defined Declaration tag in JSP


Advertisement
View Answers

October 26, 2010 at 6:24 PM


Declaration in JSP is way to define global java variable and method. This java variable method in declaration can be access normally. Normally declaration does not produce any output, and access of this code is also limited. The declaration code does not reside inside service method of JSP.

Declaration tag is used to define functions, methods and variables that will be used in Java Server Pages.JSP Declaration tag example:

<%!
  String name = "Vijay Kumar";
  String date = "26th Oct, 2010";
%>


Related Tutorials/Questions & Answers:
Declaration tag
Declaration tag   Defined Declaration tag in JSP   ... does not reside inside service method of JSP. Declaration tag is used to define... Declaration tag example: <%! String name = "Vijay Kumar"; String date
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
Advertisements
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
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
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... declaration with a semicolon. The declaration must be valid in the Java
variable declaration in c and c++
variable declaration in c and c++  Comparison and an example of variable declaration in C and C
Method in Declaration Tag
Method in Declaration Tag      ... a Declaration Tag. The syntax of this tag is <%!  --------- %>. ... are declared inside the declaration tag so, that these methods can be accessed from
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
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
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
tag handler
tag handler  what is the diff bt simple and classic tag? which is more benifit to implement the handler? can we make use of any of these two to imlement the tag handler
Expression tag
Expression tag  Defined Expression tag in JSP ?   Expression tag is used to display output of any data on the generated page. The data placed in Expression tag prints on the output stream and automatically converts
Address tag in HTML5, Definition of address tag in html5.
in address tag ,only the common html attributes can be used. Declaration syntax...Address tag in HTML5, Definition of <address> tag in html5. In this section, we will discuss usage of <address> tag and how to implement
Creating a Local Variable in JSP
or variable we usually declare it inside the declaration tag. If we declare it inside the declaration directive then then the scope of the variables... declare the methods and variables in tag except the declaration directive
Struts2 tag
Struts2 tag  function of hidden tag?   Hi Friend, <s:hidden> tag create a hidden value field.It means it stores the value but cannot be visible. For more information, visit the following link: Struts2 Tutorial
include tag
include tag  good morning sir. This is venu sir.i am pursing mca . I am learning struts2 but i have a small doubt i am using include tag. ex... include tag ..... is not displayed Thanks venu
subview with tag
subview with tag  Hi, How to access the subview of a view with the tag identifier? Thanks   Hi, Following code might useful: UIView *modalView=(UIView *) [self.view viewWithTag:101]; [modalView removeFromSuperview
include tag
am learning struts2 but i have a small doubt i am using include tag. ex... on mybirthday.jsp page in the above include tag "welcome to rose india.net... i am develop one example. ex: welcome to include tag include value=example.jsp
Creating a Local Variable in JSP
it inside the declaration tag. If we declare it inside the declaration directive... in tag except the declaration directive. In this example we are declaring
Area Tag in html5, Definition of <area> tag in HTML5.
;map> tag, the regions within image map is mouse sensitive. Declaration syntax...Area Tag in html5, Definition of  <area> tag in html5 In this section we will discuss the use of <area> tag and about its implementation
The radiobuttons tag
In this section, you will learn about radiobuttons tag of Spring form tag library
The options tag
In this section, you will learn about the options tag of Spring form tag library
The errors tag
In this section, you will learn about the errors tag of the Spring form tag library
The checkboxes tag
In this section, you will learn about checkboxes tag of Spring form tag library
The radiobutton tag
In this section, you will learn about radiobutton tag of Spring form tag library
The select tag
In this section, you will learn about the select tag of Spring form tag library
The option tag
In this section, you will learn about the option tag of Spring form tag library
The textarea tag
In this section, you will learn about the textarea tag of Spring form tag library
Advertisements
 

 

 

DMCA.com