《SpringBoot极简教程》JSP格式化输出日期
来源:互联网 发布:web优化 sysctl 编辑:程序博客网 时间:2024/06/02 05:30
引入tablib:fmt
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
实例代码如下:
<fmt:formatDate pattern="yyyy/MM/dd HH:mm:ss" value="${blog.gmtModified}"/>
完整jsp:
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %><%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %><%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %><!DOCTYPE html><html lang="en"><head> <jsp:include page="../header.jsp"></jsp:include></head><body><jsp:include page="../top-nav.jsp"></jsp:include><div class="col-sm-12"> <div>${blog.title}</div> <div>作者: ${blog.author} 日期: <fmt:formatDate pattern="yyyy/MM/dd HH:mm:ss" value="${blog.gmtModified}"/></div> <div>${blog.content}</div></div><jsp:include page="../footer.jsp"></jsp:include><footer class="panel-footer rest-footer"> <div class="footer-nav"> <a href="/" target="_blank" hidefocus="true">RestFeel</a> | <a href="https://universsky.github.io/" target="_blank">光剑免费图书馆</a> | <a href="https://jason-chen-2017.github.io/Jason-Chen-2017/" target="_blank">博客</a> | <a href="#" target="_blank" hidefocus="true">微信公众号:ols-lightshadow</a> </div> <div class="copyright">RestFeel 2017-7017</div></footer></body></html>
阅读全文
0 0
- 《SpringBoot极简教程》JSP格式化输出日期
- jsp 格式化输出日期,数字
- jsp输出格式化后的日期
- 在jsp页面上格式化输出日期格式
- Gson教程十三:模型版本化、日期格式化、漂亮输出
- .net格式化日期输出
- 格式化输出日期等
- 格式化输出日期数据
- struts2 格式化日期输出
- 格式化日期输出
- Java 格式化日期输出
- java 日期格式化输出
- Java格式化输出日期
- java日期格式化输出
- 让日期输出格式化
- 日期的格式化输出
- velocity 输出格式化日期
- JSP日期格式化源代码
- VMWare虚拟机提供的桥接,nat和主机模式的区别
- 马云说中国是在互联网上的国家 一张图读懂中国到底有多强
- RequireJS 入门指南
- 《JSP极简教程》在jsp页面获取session对象
- SSM框架搭建
- 《SpringBoot极简教程》JSP格式化输出日期
- 《Spring Boot极简教程》附录1 计算机简史
- How many tables?(简单并查集)
- 《Spring Boot极简教程》附录2 编程的本质
- 《Spring Boot极简教程》第1章 Spring Boot史前简述
- 《Spring Boot极简教程》第2章 Spring Boot简史
- 《Spring Boot极简教程》第3章 一键启动应用程序
- 《Spring Boot极简教程》第4章 零XML配置的Spring Boot Application
- 《Spring Boot极简教程》第5章 Spring Boot自动配置原理