JSTL - JSP Standard Tag Library
JSTL : - JSP Standard Tag Library
Jar required:
1)
Jstl1.2.jar
2)
Standard.jar
Advantage of JSTL
1)
Development is very easy.
2)
Code we can reuse
3)
No need to use jsp scriptlet tags
JSTL Tags:
1)
Core tags
2)
Function tags
3)
Formatting tags
4)
Xml tags
5)
Sql tags
·
core tags: These tags are used for
manipulating with data in JSP pages. This is used for iterating on data
collection, setting parameter etc.
·
Format tags: These tags are used for
formatting the data used in a JSP page.
·
Function tags: The functions tags provide
support for string manipulation and string length
·
XML tags: This tag is used for
manipulating XML documents. These tags are used for parsing, selecting and
transforming XML data in JSP page.
·
SQL tags: This library is used to
access the relational database used in a JSP page.
Syntax:
|
Tag Name
|
Syntax
|
|
Core tag
|
1. <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
|
|
Function tag
|
1. <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
|
|
Formatting tag
|
1. <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
|
|
XML Tag
|
1. <%@ taglib uri="http://java.sun.com/jsp/jstl/xml" prefix="x" %>
|
|
SQL tag
|
<%@ taglib uri="http://java.sun.com/jsp/jstl/sql" prefix="sql" %>
|




0 comments:
Post a Comment