JSTL stands for JSP Standard Tag Library. It provides the no. of tags used for iteration, condition checking, manipulating XML documents etc.
Advantages of JSTL:
- Code reusability.
- Scriplet tags are not needed.
Types of JSTL tags:
- JSTL Core Tags
- JSTL Formatting tags
- JSTL SQL tags
- JSTL XML tags
- JSTL Functions
1. JSTL Core Tags: These tags are used for iteration, condition checking, URL management etc. Core tags are most commonly used.
Syntax: <
2. JSTL Formatting tags: These tags are used for formatting the text, date, numbers etc. Syntax: <
3. SQL tags: Theses tags are used for interacting with databases like Oracle, MySQL etc. Syntax: <
4. XML tags: These tags are used forcreating and manipulating XML documents. Syntax: <
5. JSTL Functions: These function tags are mainly used for manipulating strings. Syntax: <
JSTL (JSP Standard Tag Library) tutorial:
Custom tags tutorial: