Learning JSTL

zhaozj2021-02-16  110

JSTL Includes Core Tags to Support Iteration, Conditionals, And Expression-Language Support. It Also Supports El Functions for String Manipulation.

ITeration

The Core Iteration Tag IS

Which Iterates over Most Collections and Similar Objects You'd Think To Iterage over.

Lets you ity over tokens in a

String Object; it lets you specify the

String and the delimiters.

Conditionals

JSTL Supports A Simple Conditional

Tag along with a collection of tags -

,

, and

- That Support Mutually Exclusive Conditionals. Thase Latter Three Tags Let You Implement A Typical

IF / ELSE IF / Else IF / Else Structure.

Expression Language

JSTL Provides a few tags to facilitate use of the expression logage.

prints out the value of a particular expression in the current EL, similar to the way that the scriptlet expression (<% = ...%>) syntax prints out the value of a expression in the scripting language (typically Java).

Lets you set a scoped attribute (E.G., A Value In The Request, Page, Session, or Application Scope) with the value of an expression.

Text inclusion

JSP supports the

JSP: Include Tag, But this Standard Action Is Limited in That It Only Supports Relative Urls. JSTL INTROduces the

C: Import Tag, Which Lets You Retrieve Absolute Urls. for Instance, You Can Use

c: import to retrieve information from the web using HTTP URLs, or from a file server using an FTP URL The tag also has some advanced support for performance optimizations, avoiding unnecessary buffering of data that's retrieved..

I18n-Capable Text Formatting

Formatting data is one of the key tasks in many JSP pages. JSTL introduces tags to support data formatting and parsing. These tags rely on convenient machinery to support internationalized applications.XML manipulation

You can not look anywhere these days without seeing XML, and JSTL gives you convenient support for manipulating it from your JSP pages. Parse documents, use XPath to select content, and perform XSLT transformations from within your JSP pages.

Database Access

Easily Access RELATIONAL DATABASES Using The SQL Actions. You CAN Perform Database Queries, Easily Access Results, Perform Updates, And Group Several Operations Into a Transaction.

Functions

String manipulations can be be be performing using the functions provided in jstl.

From: jakarta.apache.org

转载请注明原文地址:https://www.9cbs.com/read-10897.html

New Post(0)