Skip to main content

JSTL-JSP Standard Tag Library part 2

Evolution of JSTL-JSP Standard Tag Library

As JSP grew in popularity, it became clear that different sites' custom tags fell into familiar, frequently used patterns. For example, many pages needed to loop over data to print tables and lists.

Vendors of JSP containers and members of the open-source community tried to address these needs by providing collections of tags --tag libraries--that solved common problems.

While many JSP page authors used these libraries, nothing tied them together.
To address this fragmentation, the Java Community Process --the same group that now maintains and standardizes JSP itself --decided to offer a standard tag library. JSTL 1.0, to include tags for the following common tasks:

         •Looping over data to produce tables, lists, etc.
         •Conditional operations
         •Importing and processing data from other web pages
         •Simple XML manipulation
         •Database access
         •Text formatting and internationalization


Java Standard Tag Library (JSTL):

JSTL allows us to write JSP pages using tags, rather than the scriptletcode
JSTL is broadly divided into two sections,

 1. Tag Attributes
 2. Expression Language
           1. JSTL provides standard tag libraries into four groups
                       1. core
                       2. XML
                       3. Internationalization/format
                       4. SQL
         2. Expression Language :
EL was introduced in JSTL 1.0, but now is formally defined in JSP 2.0.

The primary design goal for JSTL and the EL (Expression Language) is to simplify webpage development and implementation.

Download Java Standard Tag Library (JSTL):

The current version is JSTL 1.2.
The older version of JSTL are : JSTL 1.0 and JSTL 1.1.
JSTL 1.2 consists of two files:
                  1. jstl-impl-1.2.jar
                  2. jstl-api-1.2.jar

These 2 files are combined into jstl-1.2.jarfile. Download the jar file from http://jstl.java.net/download.html

The above jar filesare applicable for JSP 2.1 containers such Tomcat 6.
Apache Tomcat 7 supports Java Servlet 3.0, Java Server Pages 2.2 and Expression Language 2.2specifications.

JSTL is by default not available in Tomcat, So copy jstl-1.2.jar file into Tomcat /lib folder.
Ex. C:\apache-tomcat-7.0.29\lib


Comments

Popular posts from this blog

Applications of Insulating Materials

All electrical systems require some kind of insulation to prevent short circuits and leaking currents. 3 forms of insulators: solid, liquid and gaseous Performance of these insulators depend on the temperature Classification according to their temperature rating. Impregnation: Letting the solid material absorb some liquid With the advent of new materials, the classification has been modified by International Electrotechnical Commission: The transformer insulation: (a) conductor or turn-to-turn insulation, (b) coil-to-coil insulation, (c) low voltage coil-to-earth insulation, (d) high voltage coil-to-low voltage coil insulation, and (e) high voltage coil-to-ground insulation. Transformer oil -- provides the required dielectric strength and insulation -- cools the transformer by circulating itself through the core and the coil structure. -- should be in the liquid state over the complete operating range of temperatures between -40°C and+50°C. -- gets o...

POWER SYSTEM AND POWER QUALITY

                                      POWER SYSTEM AND POWER QUALITY POWER QUALITY The up to date instrumentality crane business, like several alternative business segments, is usually loving by the bells and whistles, colourful diagnostic displays, high speed performance, and levels of automation which will be achieved. though these options Associate in Nursingd their indirectly connected laptop based mostly enhancements area unit key problems to an economical terminal operation, we tend to should not forget the inspiration upon that we tend to area unit building. Power quality is that the mortar that bonds the inspiration blocks. Power quality additionally affects terminal operational social science, crane dependableness, the environment, and initial investment in power distribution systems to support new crane installations. To quote the utility company report that accompanied the l...

PV/GENSET HYBRID

Introduction: PV and genset systems do not have much in common. It is precisely for this reason that they can be mated to form a hybrid system that goes far in overcoming the drawbacks to each technology. Table 10.1 lists the respective advantages and disadvantages. As the sun is a variable energy source, PV system designs are increased in size (and therefore cost) to allow for a degree of system autonomy. Autonomy is required to allow for provision of reliable power during "worst case" situations, which are usually periods of adverse weather, seasonally low solar insulation values or an unpredicted increased demand for power. The addition of autonomy to the system is accomplished by increasing the size of the PV array and its requisite energy storage system (the battery). When a genset is added, additional battery charging and direct AC load supply capabilities are provided. The need to build in system autonomy is therefore greatly reduced. When energy demands cannot b...