<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@page import="java.util.*" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<c:set var="date" value="<%=new Date() %>"/>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
[오늘의 날짜] <fmt:formatDate value="${date}"/><br />
[현재의 시각] <fmt:formatDate value="${date}" type="time"/><br />
</body>
</html>
'JSP' 카테고리의 다른 글
JSTL <fmt:formatNumber> 커스텀액션 (0) | 2013.03.22 |
---|---|
JSTL <fmt:formatDate> 커스텀액션 style주기 (0) | 2013.03.22 |
JSTL <c:url> 커스텀액션 (0) | 2013.03.22 |
JSTL <c:import> 커스텀액션 (0) | 2013.03.22 |
JSTL <c:forEach> 커스텀액션 (0) | 2013.03.21 |