Declaration Tag in JSP
Before you read about declaration tags in JSP, you must know what is JSP and why it is used in programming. So lets see the …
Quick answers about JSP
JSP Stands for Java Server Pages
What is it? – Sever Side Scripting Language, a Java Servlet Technology
Developed by – Sun
What are Tags in JSP?
JSP tags are used to declaring values, importing packages, inserting codes and defining expression. In JSP there are four types of tags that can be used for different purpose in JSP programming.
In JSP you can define these tags in different ways. If your are looking for detailed tutorial on JSP then visit the given link:
http://www.roseindia.net/jsp/
Declaration Tags
But here we are going to learn about only one tag, which is Declaration Tag.
You can write declaration tags within <%! And %>
These tags are basically used for embedding Java Codes. You can define functions and variables into this and can use it anywhere in the program.
For the example of declarative tags in JSP visit http://www.roseindia.net/jsp/jspdeclaratives.shtml
Here you will find an example code to print the value using declarative tags in JSP.
Reference http://www.roseindia.net/software-tutorials/detail/6240