JSPX

发布时间:2017-6-29 9:56:16 编辑:www.fx114.net 分享查询网我要评论
本篇文章主要介绍了"JSPX",主要涉及到JSPX方面的内容,对于JSPX感兴趣的同学可以参考一下。

<tags:xhtmlbasic xmlns:tags="urn:jsptagdir:/WEB-INF/tags" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:fmt="http://java.sun.com/jsp/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/> This example illustrates how to use JSPX to produce an XHTML basic document suitable for use with mobile phones, televisions, PDAs, vending machines, pagers, car navigation systems, mobile game machines, digital book readers, smart watches, etc. <p/> JSPX lets you create dynamic documents in a pure XML syntax compatible with existing XML tools. The XML syntax in JSP 1.2 was awkward and required &lt;jsp:root&gt; to be the root element of the document. This is no longer the case in JSP 2.0. <p/> This particular example uses a tag file to produce the DOCTYPE and namespace declarations to make the output of this page a valid XHTML Basic document. <p/> Just to prove this is live, here's some dynamic content: <jsp:useBean id="now" class="java.util.Date" /> <fmt:formatDate value="${now}" pattern="MMMM d, yyyy, H:mm:ss"/> </body> </tags:xhtmlbasic>

上一篇:Java NIO系列教程(四) Scatter/Gather
下一篇:谈一谈Cocos2d-x中的某些“大小”

相关文章

关键词: JSPX

相关评论

本站评论功能暂时取消,后续此功能例行通知。

一、不得利用本站危害国家安全、泄露国家秘密,不得侵犯国家社会集体的和公民的合法权益,不得利用本站制作、复制和传播不法有害信息!

二、互相尊重,对自己的言论和行为负责。