JSTL Tutorials and Online Training
JSTL (JSP Standard Tag Library) is very promising technology and it allows the web developer to create powerful web application without using scriptlets. This JSTL Online training at RoseIndia.Net will help you learn JSTL quickly.
This JSTL tutorial at RoseIndia.Net introduces you with the JSTL - Java Standard Tag Libraries. JSTL online tutorial will help you quick start the development using powerful JSTL Tag Libraries. By using JSTL you will make your JSP program more reusable and more readable. In this tutorial you will find everything you need to know about JSTL.
Browse through the follow topics to learn JSTL fast.
- Introduction to JSTL - JSP Standard Tag Library
What is JSP JSTL and its benefits?
History of JSTL ( about Jakarta Taglibs project) (jstl-history.shtml)
Why JSTL?
What are the disadvantages of JSTL?
Overview of all the JSTL tags
JSTL Versions (jstl-versions.shtml)
JSTL Tags Quick Example (jstl-tags.shtml)
JSTL Example to clean up scriptlets
New Features in EL 2.0
- Downloading and Installing the JSTL
Downloading JSTL
Configuring JSTL (jstl-configuration.shtml)
Configuring JSTL on Tomcat (jstl-tomcat.shtml)
Configuring JSTL on WebLogic Server
Configuring JSTL on Websphere (jstl-websphere.shtml)
Configuring JSTL on Geronimo Application Server (jstl-geronimo.shtml)
Configuring JSTL on JBoss
Configuring JSTL on Oracle Application Server
Configuring JSTL on JEE Glash Fish application Server
Hello World JSTL
- JSTL Implicit Objects
- Core JSTL Tags
- Example of Variable Support Tags of JSTL Core Tag Library
- Example of Flow Control Tags of JSTL Core Tag Library
- Using tag <c:redirect>
of Core JSTL tags
In this example we have used Core JSTL tag <c:redirect> that is used to redirect the page to given url, here param is used to get parameter from request.
- Using <c:forEach> tag
of Core JSTL tags
In this example we have used Core JSTL tag <c:forEach> that is used to get values from an array, here paramValues returns an array of String type of request.
- Retrieve data from database by using sql tag of
JSTL SQL library
Here in this section we will see how retrieve data from database using sql query given by user. To execute query first create a data source and then execute sql query for that data source.
- Insert data in database by using sql tag of
JSTL SQL library
Here in this section we are going to create application that update database by inserting data given by user. To update database first create a data source and then execute insert sql query for that data source.
- Execute database query by using sql tag of
JSTL SQL library
Here in this section we are going to create application that execute sql query given by user using JSTL SQL Library. To execute query first create a data source and then execute sql query for that data source.
- Create URL using <c:url> tag of JSTL
Core tag library
Here in this example we are going to create a url according to the user's given parameter by using <c:url> tag.
- Use of <c:catch> tag of Core JSTL
tags
In this example we have used Core JSTL tag <c:catch> that is used to handle exception generated during run time. Here we will create a simple calculator to divide two numbers, if user enters values instead a digit, it shows a error message as a response.
- Use of <sql:transaction> tag of jstl
Here in this section we are going to create application that how to group queries and update operations by using <sql:transaction> tag of jstl.
- Format date/time using <fmt:formatDate> tag of jstl
Here in this section we will explain how to format date/time as per user requirment by using <fmt:formatDate> tag of JSTL.
- Use of <x:set> tag of JSTL
In this section we will learn how to use <x:set> tag of Xml tag library of Jstl. This tag is used to define variable and also initialize it.
- Use of <x:parse> tag of JSTL
In this section we will learn how to use <x:parse> tag of Xml tag library of Jstl. This tag is used to parse the specified xml document.
- Use of <x:out> tag of JSTL
In this section we will learn how to use <x:out> tag of Xml tag library of Jstl. This tag is used to show the content as output for the given XPath expressions.
- Use of <x:if>
tag of JSTL
In this section we will learn how to use <x:if> tag of Xml tag library of Jstl. This tag is used for selection of statements.
- Use of <x:forEach> tag of JSTL
In this section we will learn how to use <x:forEach> tag of Xml tag library of Jstl. This is xml iteration tag, can be used to retrieve values from xml document.
- Use of <x:choose> tag of JSTL
In this section we will learn how to use <x:choose> tag of Xml tag library of Jstl. This tag is used to perform conditional operations marked by <when> and <otherwise> tags.
- Use of <x:param> tag of JSTL
In this section we will learn how to use <x:param> tag of Xml tag library of Jstl. This tag is used to add parameter to transform tag. When user want to transform more than one xml files then we will use <x:param> tag, to add xml files in transform tag.
- Use of <x:transform> tag of JSTL
In this section we will learn how to use <x:parse> tag of Xml tag library of Jstl. This tag is used to transform the specified xml document. With the use of this tag we can display data from xml document in a format that is already defined in .xslt file.
- JSTL EL Overview
Expressions
Identifiers
Operators
Type Coercion
Literal Values
Implicit Objects
Method invocation
EL Expression in custom actions
- General purpose and conditional actions
General purpose actions c:out, c:set, c:remove, c:catch
Conditional action
Using conditional and general-purpose actions together
- Iteration Tags
c:for Each action
c:forTokens action
Iteration status
Custom Iteration actions
- URL Actions
c:import action
c:redirect action
c:url action
c:param action
Accessing external resource from JSTL tags
- Formatting actions
Formatting and parsing numbers
Formatting and parsing dates and times with DateTime
Using Time Zone
Determining a formatting locale
- Database actions with the DBTags Library
How JSTL locates data sources
Creating data sources
Querying and updating a database
Executing database transactions
Implementing database custom actions
Using the DBTags and Input tag libraries together to create data-bound forms
- File IO with IO Library
Using IO tags to read text and bytes
Using IO tags to write text and bytes
Using IO tags for other file IO operations
- XML Manipulation Tags
Understanding XML and related technologies (XML, DTD, Schemas, XLS and XPath)
XML action overview
XPath overview
Parsing XML
Using scoped variables in XPath instructions
Transforming XML with XSLT
Filtering XML
Accessing external entities
- Additional useful tag library in JSTL
Validating forms and data with the Regexp tag lib
Using the Request and Response taglib to facilitate easier handling of JSP requests and response
Using the session and Application taglibs
Generating random numbers and strings with the Random taglib
Sending email with the Mailer taglib
Extracting Content from documents on the web with the scrape taglib
Example to manipulate the String with the String taglib