Global tag libraries (deprecated)
JSP (JSP) tag libraries contain classes for common tasks such as processing forms and accessing databases from JSP files.
Tag libraries encapsulate, as simple tags, core functionality common to many web applications. The Java Standard Tag Library (JSTL) supports common programming tasks such as iteration and conditional processing, and provides tags for:
- manipulating XML documents
- supporting internationalization
- using Structured Query Language (SQL)
Tag libraries also introduce the concept of an expression language to simplify page development, and include a version of the JSP expression language.
A tag library has two parts - a Tag Library Descriptor (TLD) file and a JAR file.
Subtopics
- tsx:dbconnect tag JSP syntax (deprecated)
Use the <tsx:dbconnect> tag to specify information needed to make a connection to a database through Java DataBase Connectivity (JDBC) or Open Database Connectivity (ODBC) technology.
- dbquery tag JSP syntax (deprecated)
Use the <tsx:dbquery> tag to establish a connection to a database, submit database queries, and return the results set.
- dbmodify tag JSP syntax (deprecated)
The <tsx:dbmodify> tag establishes a connection to a database and then adds records to a database table.
- tsx:getProperty tag JSP syntax and examples (deprecated)
The <tsx:getProperty> tag gets the value of a bean to display in a JSP (JSP) file.
- tsx:userid and tsx:passwd tag JSP syntax (deprecated)
With the <tsx:userid> and <tsx:passwd> tags, we do not have to hard code a user ID and password in the <tsx:dbconnect> tag.
- tsx:repeat tag JSP syntax (deprecated)
The <tsx:repeat> tag repeats a block of HTML tagging.
- Example: Use tsx:repeat JSP tag to iterate over a results set (deprecated)
The <tsx:repeat> tag iterates over a results set. The results set is contained within a bean. The bean can be a static bean, for example, a bean created using the IBM WebSphere Studio database wizard, or a dynamically generated bean, for example, a bean generated by the <tsx:dbquery> syntax.
Related concepts
JSP class file generation Packages and directories for generated .java and .class files JSP batch compilation JSP
Web container configuration for JSP static file access Web applications: Resources for learning Concept topic