Mega Code Archive

 
Categories / Java Tutorial / JSTL
 

JSTL JSP XML Format Page

<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/>     <jsp:useBean id="now" class="java.util.Date" />     <fmt:formatDate value="${now}" pattern="MMMM d, yyyy, H:mm:ss"/>   </body> </tags:xhtmlbasic>