HTML页面嵌入动态元素,简单

80酷酷网    80kuku.com

  动态|页面

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

<html>

<body bgcolor="white">

<jsp:userBean id="clock" class="java.util.Date" />

<c:choose>

     <c:when test="${clock.hours<12}">

     <h1> Good Morning! </h1>

     </c:when>

     <c:when test="${clock.hours<18}">

     <h1> Good day! </h1>

     </c:when>

     <c:otherwise>

     <h1> Good evening! </h1>

     </c:otherwise>

</c:choose>

Welcome to our site,open 24 hours a day.

</body>

</html>



分享到
  • 微信分享
  • 新浪微博
  • QQ好友
  • QQ空间
点击: