JSTL - JSTL Formatting
अगर निचे दिए हुए tags का इस्तेमाल करना हो तो पहले formatting library को JSP Page पर include किया जाता है |
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="yourPrefix" %>
Formatting Tags | Description |
---|---|
<prefix:bundle> | इस tag का इस्तेमाल ResourceBundle object को create करने के लिए किया जाता है | इस bundle को tag body द्वारा इस्तेमाल किया जाता है | |
<prefix:formatDate> | date और time को दिए गए format में दिया जाता है | |
<prefix:formatNumber> | Numeric value को दिए गए format में दिया जाता है | |
<prefix:message> | message को internationalized message; format में दिया जाता है | |
<prefix:parseDate> | date और time के string representation को parse किया जाता है | |
<prefix:parseNumber> | currency, percentage या number के string representation को parse किया जाता है | |
<prefix:setBundle> | इस tag का इस्तेमाल resource bundle को किसी scope variable पर store करने के लिए किया जाता है | |
<prefix:setTimeZone> | इस tag का इस्तेमाल दिए गए time zone को किसी time zone configuration variable पर store करने के लिए किया जाता है | |
<prefix:timeZone> | इस tag का इस्तेमाल time zone format करने के लिए किया जाता है | |