Demo entry 6360710

aa

   

Submitted by anonymous on May 02, 2017 at 16:29
Language: Java. Code size: 883 Bytes.

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<jsp:useBean id="timeNow" class="java.util.Date" />

<html>
<head>
<title>developerWorks Tomcat Tutorial</title>
<link rel=stylesheet type="text/css" href="specials.css">
</head>
<body>
<table width="600">
  <tr>
    <td class="mainHead" colspan="9">
      <h1>Today is 
         <fmt:formatDate value="${timeNow}"
         type="date" dateStyle="long" /></h1>
    </td>
  </tr>
  <tr>
    <c:forEach var="i" begin="1" end="9" step="1">
      <th>${i}x</th>
    </c:forEach>
  </tr>
    <c:forEach var="row" begin="1" end="9" step="1">
      <tr>
      <c:forEach var="col" begin="1" end="9" step="1">
        <td><c:out value="${row * col}" /></td>
      </c:forEach>
      </tr>
    </c:forEach>
</table>
</body>
</html>

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).