### JSP+XML 腔撮扲詼猁(3)

<%@ taglib uri="..." prefix="tl" %>
<html>
<tl:parse id="saleBooks" type="BookInventory"
xml="Book_Inventory_URL"/>
<head>...
<body>
<table border="0" width="50%">
<tl:iterate
id ="bk" type="Book"
collection="<%= saleBooks.getBooks()%>" >
<tr>
<td><jsp:getProperty name="bk" property="title"/></td>
</tr>
</tl:iterate>
</table>
</body>
</html>
2.4 Parse and Iterate
<%@ taglib uri="..." prefix="tl" %>
<html>
<head>...
<body>
<table border="0" width="50%">
<tl:iterateOnXMLStream
id="bk" type="Book"
xml="Book_Inventory_URL">
<tr>
<td><jsp:getProperty name="bk" property="title"/></td>
</tr>
</tl:iterateOnXMLStream>
</table>
</body>
</html>
2.5 Combining Data
(脣芞 2)
2.6 Insert After Transformation
<%@taglib uri="http://jakarta.apache.org/taglibs/xsl/1.0"
prefix="x" %>
<html>
<head>...
<body>
<center> Welcome
<x:apply xml="Customer_URL" xsl="store.xsl"/>!
<p>
On Sale Today ...
<p>
<x:apply xml="Inventory_URL" xsl="store.xsl"/>
</center>
</body>
</html>
2.7 Producing XML
* Client may be
每 Gateway
每 Device (WAP, XHTML)
* XML
* XML + StyleSheet
2.8 VoiceXML and WAP Gateways
(脣芞 3)
2.9 Generating XML
J1 @ java.sun.com
(脣芞 4)
2.10 XSLT on XML
(脣芞 5)
2.11 JSP and XSLT
* JSP strengths
每 Template & Java
每 Multiple Sources
每 Open-ended Portable Abstraction
* XSLT strengths
每 Recursive tree transformation
每 Well defined input/output
* XPath
2.12 Generating Content for
Multiple Devices
* One back end source
* Many clients
* Minimize Total Maintenance Cost
* Desired Generation Performance
2.13 Multiple Clients
XSLT Stylesheet
(脣芞 6)
2﹝14 Multiple Clients
Short Pipelines
(脣芞 7)
2.15 Multiple Clients
Combined Approach
(脣芞 8)
2.16 Uses of XML in JSP Technology
* JSPs Pages
JSP Pages as XML documents
* XML configuration
2.17 JSP Pages as XML Documents
* Manipulation
每 Apply XSLT to generate JSP
* Authoring
每 JSP pages from XML objects
* Validation
每 TagLibraryValidator
* Standarized in JSP 1.2
2.18 XML Configuration
* Tag Library Descriptor
* Servlet configuration
每 Resources
每 Mappings
每 Filters (JSP 1.2)
每 others
3 珋袨
3﹝1 Industry Support
Containers
Apache
Allaire
ATG Dynamo
BEA Weblogic
Bluestone
Caucho
Gemstone
IBM＊ s WebSphere
Inprise AppServer
Iplanet iWS, iAS
Oracle
Persistence
Unify
Some Users
* PeopleSoft
* I2
* CP
* ...
Some Sites
* Delta.com
* Food.com
* CarOrder.com
* ...
Tools
* MacroMedia
UltraDev
* Adobe GoLive
* Unify eWeb Studio
* WebGain＊ s Studio
* Forte for Java
* Oracle Jdeveloper
* Inprise Jbuilder
* ATG Dynamo
* ...
3﹝2 New JSP & Servlets
* JSR-053
* Servlet 2.3
每 Filters
每 Application Events
* JSP 1.2
每 XML view of JSP page
每 Many improvements & refinements
* Implementation @ ASF
每 jakarta.apache.org/tomcat
3﹝3 JSP Tag Library
* JSR-052
* Standard JSP tag library
每 Rich functionality
每 XSLT
每 XPATH
每 Other XML processing
* Implementation @ ASF
每 jakarta.apache.org/taglibs
3﹝4 Framework efforts
* J2EE Framework
每 Blueprints
* JSP / Servlet Framework
每 Struts
每 Implementation @ ASF
每 jakarta.apache.org/struts
3﹝5 JSP Tool Support
* Mostly for Page Authoring
每 Some for TagLib Authoring
* Already in several tools
每 e.g. UltraDev support in Struts
* Focus next 6 months
每 Standard taglib
每 Any taglib
3﹝6 XML Parsing & Transformation
* JAXP 1.1
每 Part of next J2SE (JDK)
每 DOM level 2
每 XSLT
每 Combined with TRaX (XSLT activation)
每 Implementation @ ASF
* XSLTC
每 XSLT compiler
每 Fast, Small footprint
3﹝7 Data Binding
Beans Long Term Persistance
* Adelard
每 Part of next J2SE
每 Data Binding
* JavaBeans Long Term Persistance
每 Part of next J2SE
每 Generic Swing Machinery
3﹝8 XML Messaging
* XML messaging
每 JMS
每 ebXML
每 JAXM
每 Message Beans (J2EE 1.3)
**************************************************
Review
* JSP, Servlets & J2EE
* JSP
每 Consuming XML
每 Transforming XML
每 Producing XML

每 Relationship with XSLT
* Status of several JSP/XML efforts