&;#8211; Resources
&;#8211; Mappings
&;#8211; Filters (
JSP 1.2)
&;#8211; 其它
3 现状
3.1 业界支持
容器方面:
Apache,Allaire,ATG Dynamo,BEA Weblogic,Bluestone,Caucho,Gemstone,IBM’s WebSphere
Inprise AppServer,Iplanet iWS, iAS, Oracle,Persistence, Unify
一些用户:
PeopleSoft,I2,CP ...
一些站点:
Delta.com, Food.com, CarOrder.com ...
工具
MacroMedia UltraDev,Adobe GoLive,Unify eWeb Studio,WebGain’s Studio
Forte for Java,Oracle Jdeveloper,Inprise Jbuilder,ATG Dynamo, ...
[color=#FFFFFF'][/color]
3.2 新的
JSP &;amp; Servlets技术
* JSR-053
* Servlet 2.3
&;#8211; Filters
&;#8211; Application Events
*
JSP 1.2
&;#8211;
JSP页面的
XML方式查询
&;#8211; 许多改进和增强
* Apache组织的推行
&;#8211; jakarta.apache.org/tomcat
3.3
JSP Tag Library
* JSR-052
* 标准的
JSP tag library
&;#8211; 丰富的功能
&;#8211; XSLT
&;#8211; XPATH
&;#8211; 其它的
XML的进程
&;#8211; Apache组织的推进( jakarta.apache.org/taglibs)
3.4 框架的支持
* J2EE体系
*
JSP/Servlet体系
&;#8211; Struts
&;#8211; Apache组织的推进(jakarta.apache.org/struts)
3.5
JSP工具支持
* 大多数情况下是为页面作者提供的
&;#8211; 有一些是为TagLib工作者提供
* 已经存在于一些工具中
&;#8211; 例如,UltraDev支持Struts
* 近6个月的预测
&;#8211; 标准的taglib将出现,还有各种其他的taglib
[color=#FFFFFF'][/color]
3.6
XML解析和转化
* JAXP 1.1
&;#8211; 下一代 J2SE(JDK)的组成部分
&;#8211; DOM level 2
&;#8211; XSLT
&;#8211; 和TRaX (XSLT激活)进行组合
&;#8211; Apache组织的推进
* XSLTC
&;#8211; XSLT编译器
&;#8211; 更快,更小的脚本
3.7 数据绑定
Beans Long Term Persistance
* Adelard
&;#8211; 下一代J2SE的组成部分
&;#8211; 数据绑定
* JavaBeans Long Term Persistance
&;#8211; 下一代 J2SE的组成部分
&;#8211; 图形化Swing机制
3.8
XML Messaging
*
XML messaging
&;#8211; JMS
&;#8211; eb
XML&;#8211; JAXM
&;#8211; Message Beans (J2EE 1.3)
(剧终)
*******************************
为防误译,特附原来文档,这是sun站点的官方pdf文档,有685K,我特地从中裁剪出来的。:)
JSP Technology and
XML技术纲要
Eduardo Pelegri-Llopart
Sun Microsystems
pelegri@eng.sun.comhttp://java.sun.com/jsp提纲
*
JSP, Servlets &;amp; J2EE
*
JSP and
XML* Status
1
JSP, Servlets &;amp; J2EE
1。1 J2EE Platform
* Specification
* Compatibility Tests
* Reference Implementation (RI)
* Rich Functionality
&;#8211;
JSP and Servlets
&;#8211; JDBC
&;#8211; EJB
&;#8211; JMS
&;#8211; Connector to EIS (J2EE 1.3)
1。2 J2EE Benefits
* Common Mindshare
&;#8211; Documentation
&;#8211; Training
&;#8211; Tool Support
* Portability
* Best-of-Breed Implementations
1。3 Web Layer of J2EE
(插图1)
[color=#FFFFFF'][/color]
1.4 Role of
JSP and Servlets
* Entry point to application
* Interacts with the exterior
* Usually through HTTP
* Client may be:
* Browser
* Applet
* Desktop application (Java Web Start)
* Wireless Device
* Server application (B2B)
1.5
JSP and Servlets
* Can be used in
&;#8211;
JSP &;amp; Servlet Container
&;#8211; J2EE Container
* Common mindshare
* Best-of-breed implementation
* Wide support
1.6 What Is a Servlet?
* Extension mechanism
* Dynamic content generation
* Mapped to URLs
* Simple architecture
* Managed by container
1.7
JSP Page
* A textual document
* Describes a request &;#8211; response map
* Servlet Semantics
1.8 一个例子
<?xml version="1.0">
<%@ page contentType=”text/xml” %>
<%@ taglib prefix="x" uri="..." %>
<wml>
<card id="card1" title="Flowers">
<p>
Flowers available:
<br/>
<x:enumerate inventory="flowers"
id="aFlower">
<%= aFlower.type %>
<br/>
</x:iterate>
<br/>
</p>
</card>
</wml>
1.9
JSP Page
* A textual document
* Builds on
&;#8211; Template data
&;#8211; Dynamic content
* Tool friendly
* Abstraction using
&;#8211; JavaBeans
&;#8211; Tag Libraries
1.10 Tag Libraries
* Abstraction Mechanism
*
XML syntax
* Run-Time Protocol
&;#8211; Integration into a
JSP page
&;#8211; Easy to compose and customize
&;#8211; Managed by
JSP container
&;#8211; Simple protocol for simple needs
1.11 Roles Involved
* Page and Site Author
&;#8211; Creates presentation from developer data
&;#8211; Expert in UI
&;#8211; Uses Tag Libraries &;amp; JavaBeans
&;#8211; Page Authoring tools
* Developer
&;#8211; Provides access to data for page author
&;#8211; Expert in server-side organization
&;#8211; Defines Tag Libraries &;amp; JavaBeans
&;#8211; IDEs
2
JSP &;amp;
XML2.1 Uses of
XML in
JSP Technology
JSPs Pages
&;#8211; Consuming
XML&;#8211; Generating
XML&;#8211; Transforming
XML*
JSP Pages as
XML documents
*
XML configuration
2.2 Consuming
XML* Parse
XML into objects (by developer)
&;#8211; Hand-coded
&;#8211; Using Adelard Technology
* Parse and Iterate abstraction
* Insert after transformation
&;#8211; XSLT
2.3 Parse Into Object
[color=#FFFFFF'][/color]