一. Spring MVC 标签库
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form" %>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring" %>
二. Spring Form tags:
- checkbox tag
- checkboxes tag
- errors tag
- form tag
- hidden tag
- input tag
- label tag
- option tag
- options tag
- password tag
- radiobutton tag
- radiobuttons tag
- select tag
- textarea tag
三. Spring spring.tld tags:
- bind tag
- escapeBody tag
- hasBindErrors tag
- htmlEscape tag
- message tag
- nestedPath tag
- theme tag
- transform tag
四. JSTL Tags:
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 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
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.
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.
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.
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.
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.
Here in this example we are going to create a url according to the user's given parameter by using <c:url> tag.
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.
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.
Here in this section we will explain how to format date/time as per user requirment by using <fmt:formatDate> 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.
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.
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.
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.
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.
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.
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.
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.
Expressions
Identifiers
Operators
Type Coercion
Literal Values
Implicit Objects
Method invocation
EL Expression in custom actions
General purpose actions c:out, c:set, c:remove, c:catch
Conditional action
Using conditional and general-purpose actions together
c:for Each action
c:forTokens action
Iteration status
Custom Iteration actions
c:import action
c:redirect action
c:url action
c:param action
Accessing external resource from JSTL tags
Formatting and parsing numbers
Formatting and parsing dates and times with DateTime
Using Time Zone
Determining a formatting locale
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
Using IO tags to read text and bytes
Using IO tags to write text and bytes
Using IO tags for other file IO operations
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
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