Technical outline of Jsp+xml (2)

Source: Internet
Author: User
Tags xslt java web
Js|xml

–resources
–mappings
–filters (JSP 1.2)
– Other

3 Status Quo

3.1 Industry Support

Container aspect:
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 Technology


* JSR-053
* Servlet 2.3
–filters
–application Events
* JSP 1.2
XML Query for –jsp page
– Many improvements and enhancements
* The implementation of the Apache organization
–jakarta.apache.org/tomcat

3.3 JSP Tag Library


* JSR-052
* Standard JSP Tag Library
-Rich Features
–xslt
–xpath
– The process of other XML
Advancement of the –apache Organization (JAKARTA.APACHE.ORG/TAGLIBS)


3.4 Support of the framework


* Java EE system
* Jsp/servlet System
–struts
Advancement of the –apache Organization (jakarta.apache.org/struts)

3.5 JSP Tool Support


* Most of the cases are provided for the page author
– some are available for taglib workers
* already exists in some tools
– for example, Ultradev supports struts
* Forecast for nearly 6 months
– Standard taglib will appear, as well as a variety of other taglib

3.6 XML parsing and transformation


* JAXP 1.1
– Components of the next generation J2SE (JDK)
–dom Level 2
–xslt
– Combined with Trax (XSLT activation)
The Advancement of –apache Organization
* XSLTC
–xslt compiler
-Faster, smaller scripts

3.7 Data binding


Beans Long Term persistance
* Adelard
– Components of the next generation J2SE
– Data binding
* JavaBeans Long Term persistance
– Components of the next generation J2SE
-Graphical swing mechanism

3.8 XML Messaging


* XML Messaging
–jms
–ebxml
–jaxm
–message Beans (Java 1.3)

End

*******************************

To prevent mistranslation, attach the original document, this is the official PDF document of the Sun site, there are 685K, I specifically cut out from it. :)

JSP Technology and XML technology outline
Eduardo Pelegri-llopart
Sun Microsystems
Pelegri@eng.sun.com
http://java.sun.com/jsp

Outline
* JSP, Servlets & Java EE
* JSP and XML
* Status

1 JSP, Servlets & Java
1. 1 Java Platform

* Specification
* Compatibility Tests
* Reference Implementation (RI)
* Rich Functionality
–jsp and Servlets
–jdbc
–ejb
–jms
–connector to EIS (Java 1.3)

1. 2 Java Benefits

* Common Mindshare
–documentation
–training
–tool Support
* Portability
* Best-of-breed implementations

1. 3 Web Layer of Java
(Illustration 1)

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 (business-to-business)

1.5 JSP and Servlets
* Can is used in
–jsp & Servlet Container
–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–response map
* Servlet semantics

1.8 An example
<?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
–template data
–dynamic Content
* Tool Friendly
* Abstraction using
–javabeans
–tag Libraries

1.10 Tag Libraries
* Abstraction mechanism
* XML Syntax
* Run-time Protocol
–integration into a JSP page
–easy to compose and customize
–managed by JSP Container
–simple protocol for Simple needs

1.11 Roles involved
* Page and Site Author
–creates Presentation from developer data
–expert in UI
–uses Tag Libraries & JavaBeans
–page Authoring Tools
* Developer
–provides access to data for page author
–expert in Server-side organization
–defines Tag Libraries & JavaBeans
–ides

2 JSP & XML
2.1 Uses of XML in JSP Technology
JSPs Pages
–consuming XML
–generating XML
–transforming XML
* JSP Pages as XML documents
* XML Configuration

2.2 Consuming XML
* Parse XML into objects (by developer)
–hand-coded
–using Adelard Technology
* Parse and Iterate abstraction
* Insert after transformation
–xslt

2.3 Parse into Object



Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.