Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

tag

fmt:timeZone tag

JSP Standard Label LibraryJSP Standard Tag Library

fmt:timeZoneThe tag is used to specify a time zone for use by other tags.


Syntax format



property

fmt:timeZoneThe tag has the following attributes:

property Description Whether it is required Default value
value Timezone Is None

Example Demonstration



<%@ page language="java" contentType="text/html; charset=UTF-8"

    pageEncoding="UTF-8"%>

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>



  

    JSTL fmt:timeZone 标签

  



  

    

    

        

Formatting:

The running result is as follows:

fmt-timezone


JSP Standard Label LibraryJSP Standard Tag Library