Global tag libraries (deprecated)
JavaServer Pages (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 JavaServer Pages 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 JavaServer Pages syntax (deprecated)
Use the <tsx:dbquery> tag to establish a connection to a database, submit database queries, and return the results set.- dbmodify tag JavaServer Pages syntax (deprecated)
The <tsx:dbmodify> tag establishes a connection to a database and then adds records to a database table.- tsx:getProperty tag JavaServer Pages syntax and examples (deprecated)
The <tsx:getProperty> tag gets the value of a bean to display in a JavaServer Pages (JSP) file.- tsx:userid and tsx:passwd tag JavaServer Pages 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 JavaServer Pages syntax (deprecated)
The <tsx:repeat> tag repeats a block of HTML tagging.- Example: Using tsx:repeat JavaServer Pages 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:
JSP class file generation Packages and directories for generated .java and .class files JSP batch compilation JavaServer Pages Web container configuration for JavaServer Pages static file access Web applications: Resources for learning