JSTL JSP XML Format Page : Introduction « JSTL « Java Tutorial






<tags:xhtmlbasic xmlns:tags="urn:jsptagdir:/WEB-INF/tags"
                 xmlns:jsp="http://java.sun.com/JSP/Page"
                 xmlns:fmt="http://java.sun.com/jstl/fmt"
     xmlns="http://www.w3.org/1999/xhtml">
  <jsp:directive.page contentType="text/html" />
  <head>
    <title>JSPX - XHTML Basic Example</title>
  </head>
  <body>
    <h1>JSPX - XHTML Basic Example</h1>
    <hr/>
    <p/>
    <p/>
    <p/>
    <jsp:useBean id="now" class="java.util.Date" />
    <fmt:formatDate value="${now}" pattern="MMMM d, yyyy, H:mm:ss"/>
  </body>
</tags:xhtmlbasic>
  Download:  JSTLJSPXMLFormatPage.zip( 1,082 k)








24.1.Introduction
24.1.1.Setup Environment for JSTL
24.1.2.Setup Environment for Development Custom Tag
24.1.3.JSTL JSP XML Format Page
24.1.4.JSTL in XML Format