custom label

     In order to facilitate the display of formatted information on the page and do some special processing... We often use custom tags. The following is a detailed explanation of how to implement custom tags.

     1. Introduce a custom tag library on the page

<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!-- Introduce custom tags-->
<%@ taglib uri="http://java.sun.com/jsp/jstl/ctags" prefix="ctag"%>

<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8" />
	<title> Presentation </ title>
</head>
<body class="bodys">
	时间:<ctag:dateFormat date="2016-03-08 19:08:04"/>
</body>
</html>

 

      

 

 

1. Description

    Need to rely on tomcat's "jsp-api.jar" and "servlet-api.jar" two jar packages

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326674512&siteId=291194637