- Trending Categories
- Data Structure
- Operating System
- MS Excel
- C Programming
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
What are JSTL formatting tags in JSP?
The JSTL formatting tags are used to format and display text, the date, the time, and numbers for internationalized Websites. Following is the syntax to include Formatting library in your JSP −
<%@ taglib prefix = "fmt" uri = "http://java.sun.com/jsp/jstl/fmt" %>
Following table lists out the Formatting JSTL Tags −
|S.No.||Tag & Description|
|1||<fmt:formatNumber>: To render numerical value with specific precision or format.|
|2||<fmt:parseNumber>: Parses the string representation of a number, currency, or percentage.|
|3||<fmt:formatDate>: Formats a date and/or time using the supplied styles and pattern.|
|4||<fmt:parseDate>: Parses the string representation of a date and/or time|
|5||<fmt:bundle>: Loads a resource bundle to be used by its tag body.|
|6||<fmt:setLocale>: Stores the given locale in the locale configuration variable.|
|7||<fmt:setBundle>: Loads a resource bundle and stores it in the named scoped variable or the bundle configuration variable.|
|8||<fmt:timeZone>: Specifies the time zone for any time formatting or parsing actions nested in its body.|
|9||<fmt:setTimeZone>: Stores the given time zone in the time zone configuration variable|
|10||<fmt:message>: Displays an internationalized message.|
|11||<fmt:requestEncoding>: Sets the request character encoding|
- Related Articles
- What are JSTL Core tags in JSP?
- How to handle error object in JSP using JSTL tags?
- What the different types of JSTL tags are ?
- Is there any JSTL library to parse XML in a JSP?
- What is JSTL?
- How many types of directive tags JSP supports?
- What are filters in JSP?
- What are cookies in JSP?
- What are JSP comments?
- What are JSP Directives?
- What are JSP literals?
- What are JSP actions elements?
- What are the different scope values for the JSP action in JSP?
- What are JSP declarations? In how many ways we can write JSP declarations?