Sun Microsystems (http://java.sun.com/jsp) Author: Eduardo Pelegri-Llopart (pelegri@eng.sun.com) (Blueski.class compiler) This paper outlines: * JSP, Servlets & J2EE * JSP & XML * Status (with: original)
1 JSP, Servlets & J2EE
1.1 J2EE platform * has a clear specification * After a variety of compatibility tests * has many implementation references (ri) * rich features in the following: - JSP / servlets- JDBC- EJB- JMS- Connector to Eis (J2EE 1.3) * Very practical value 1.2 J2EE's web layer
(Please refer to the figure below :)
1.3 JSP / Servlets played roles (Translator Note: I blended JSP and Servelet, you can refer to the original text attached herein)
* Application's entrance * and external interactions * Generally adopted HTTP protocol * Clients may be the following types: - Browser-Applet-Desktop Application (Java Web Start) - Wireless Device - Server Application (B2B) 1.4 JSP / servlets Uses * can be used for - JSP & Servlet Container- J2ee Container * Common Mindshare * Best-of-Breed Imblementation * has been widely supported * Dynamic content generation * Has a simplified architecture * By ContaBeans and Tag LIBs
1.5 an example
XML Version = "1.0"> <% @ Page ContentType = "Text / XML"%> <% @ taglib prefix = "x" URI = "..."%>
* Abstract refining * XML syntax * Run-Time protocol - integrated into the JSP page - easy to combine and customize - by JSP Container - Simple protocol, used for simple requirements 1.7 various collaborative roles
* Site page author - Establish an expert from the data from the data developer - Using Tag LIB and JavaBeans- Using Page Tool * Developer - Provides data access - for page authors - Server - Server-Party Experts - Define Tag Lib and JavaBeans- Ide2 JSP & XML
2.1 Application of XML in JSP Technology
JSP page You can: - use XML-Generate XML-Change XML * Use XML Configuration 2.2 Use XML Configuration 2.2
* Resolve XML to objects (completed by developers) - hardcodes - use ADELARD technology * Resolution and review Abstract * Transition After insertion - XSLT2.3 parsing becomes an object
Multiple Devices * One Back end Source * Many customers * Minimize total maintenance costs * Decreased performance
More than 2.13 customers' XSLT style
(Please refer to the figure below :)
2.4 more customers' short pipe Short Pipelines
(Please refer to the figure below :)
More than 2.1-multi-customer portfolio
(Please refer to the figure below :)
2.16 Using XML in JSP technology
* JSPS Pages will use the JSP page as an XML document
* Manipulation - Apply XSLT to generate JSP * Authoring - JSP pages from XML objects * Validation - TagLibraryValidator * Standarized in JSP 1.2 * XML configuration * Tag Library Descriptor * Servlet configuration - Resources - Mappings - Filters (JSP 1.2) - Other
3 Status 3.1 Industry Support Containers: Apache, Allaire, ATG Dynamo, Bea Weblogic, Bluestone, Caucho, Gemstone, IBM's WebSphereinprise Appserver, IPlanet IWS, IAS, Oracle, Persistence, Unify Some users: PeopleSoft, I2, CP ... Some site: Delta.com, Food.com, CarOrder.com ... tools MacroMedia UltraDev, Adobe GoLive, Unify eWeb Studio, WebGain's StudioForte 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-JSP page XML method query - Many improvements and enhancements * Apache organization's implementation - JAKARTA.APache.org/tomcat3.3 JSP Tag Library
* JSR-052 * Standard JSP Tag Library - Rich Features - XSLT- XPath-Other XML Processes - Apache Organization Promotion (Jakarta.apache.org/taglibs)
3.4 Support for framework
* J2EE system * JSP / servlet system - Struts- Apache organization's advancement (jakarta.apache.org/struts) 3.5 JSP tool support
* Most of the cases are provided for the page authors - Some are provided for Taglib workers * already existing in some tools - for example, Ultradev supports Struts * nearly 6 months prediction - standard Taglib will appear, and each Other TAGLIB3.6 XML analysis and transformation
* JAXP 1.1 - Next Generation J2SE (JDK) Component - DOM Level 2- XSLT- and TRAX (XSLT Activation) combination - Apache Organization Push * XSLTC- XSLT Compiler - Faster, smaller script 3.7 data tied Beans Long Term Persistance * Adelard - Composite of Next Generation J2SE - Data Binding * JavaBeans Long Term Persistance - Component of Next Generation J2SE - Tiantian Swing Mechanism 3.8 XML Messaging
* XML Messaging-JMS-EBXML-JAXM-Message Beans (J2EE 1.3)
(The end)
*****************************
To prevent translators, the original document is attached, this is the official PDF document of the Sun site, 685K, I cut it from cut out. :)
JSP Technology and XML Technology Platform Eduardo Pelegri-LlopartSun Microsystemspelegri@eng.sun.comhttp: //java.sun.com/jsp outline * JSP, Servlets & J2EE * JSP and XML * Status1 JSP, Servlets & J2EE1.1 J2EE Platform * Specification * Compatibility Tests * Reference Implementation (RI) * Rich Functionality- JSP and Servlets- JDBC- EJB- JMS- Connector to EIS (J2EE 1.3) 1.2 J2EE Benefits * Common Mindshare- Documentation- Training- Tool Support * Portability * Best -of-breed usthations1.
3 Web Layer of J2EE (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 (B2B) 1.5 JSP and Servlets * Can be used in- JSP & Servlet Container- J2EE Container * Common mindshare * Best-of-breed implementation * Wide support1.6 What Is a Servlet? * Extension mechanism * Dynamic content generation * Mapped to URLs * Simple architecture * Managed by container1.7 JSP Page * a textual document * Describes a request - response map * Servlet Semantics1.8 an example xml version = "1.0"> <% @ page contentType = "text / XML "%> <% @ taglib prefix =" x "URI =" ... "%>
flowers available: <% = Aflower.Type%> x: Iterete> p> card> wml> 1.9 JSP Page * A Textual Document * Builds ON- TEMPLATE DATA- DYNAMIC Content * Tool Friendly * Abstract Using-javabeans- Tag Libraries1 .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 needs1.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- IDEs2 JSP &
XML2.1 Uses of XML in JSP TechnologyJSPs Pages- Consuming XML- Generating XML- Transforming XML * JSP Pages as XML documents * XML configuration2.2 Consuming XML * Parse XML into objects (by developer) - Hand-coded- Using Adelard Technology * PARSE AND ITERATE ABSTRACTION * INSERT AFTER TRANSE INTO Object <% @ Taglib Uri = "..." prefix = "tl"%>
center> body> html> 2.7 producing XML * Client May Be- Gateway- Device (WAP, XHTML) * XML * XML Stylesheet2.8 VoiceXML and WAP Gateways (Illustration 3)
2.9 Generating XMLJ1 @ java.sun.com (Illustration 4) 2.10 XSLT on XML (Illustration 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 * XPath2.12 Generating Content forMultiple Devices * One back end source * Many clients * Minimize Total Maintenance Cost * Desired Generation Performance2.13 Multiple ClientsXSLT Stylesheet (illustration 6) 2.14 Multiple ClientsShort Pipelines (illustration 7) 2.15 Multiple ClientsCombined Approach (illustration 8) 2.16 Uses of XML in JSP Technology * JSPs PagesJSP Pages as XML documents * XML configuration2.17 JSP Pages as XML Documents * Manipulation- Apply XSLT to generate JSP * Authoring- JSP pages from XML objects * validation- TagLibraryValidator * standarized in JSP 1.22.18 XML Configuration * Tag Library Descriptor * Servlet configuration- Resources- Mappings- Filters (JSP 1.2) - Status others3 3.1 Industry SupportContainersApacheAllaireATG DynamoBEA WeblogicBluestoneCauchoGemstoneIBM 's WebSphereInpri se AppServerIplanet iWS, iASOraclePersistenceUnifySome Users * PeopleSoft * I2 * CP * ... Some Sites * Delta.com * Food.com * CarOrder.com * ... Tools * MacroMediaUltraDev * 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/tomcat3.3 JSP Tag Library * JSR-052 * Standard JSP tag library- Rich functionality- XSLT- XPATH- Other XML processing * Implementation @ ASF- jakarta.apache.org/taglibs3.
4 Framework efforts * J2EE Framework- Blueprints * JSP / Servlet Framework- Struts- Implementation @ ASF- jakarta.apache.org/struts3.5 JSP Tool Support * Mostly for Page Authoring- Some for TagLib Authoring * Already in several tools- eg UltraDev support in Struts * Focus next 6 months- Standard taglib- Any taglib3.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 footprint3.7 Data BindingBeans Long Term persistance * Adelard- Part of next J2SE- Data Binding * JavaBeans Long Term Persistance- Part of next J2SE- Generic Swing Machinery3.8 XML Messaging * XML messaging- JMS- Ebxml- Jaxm- Message Beans (J2EE 1.3) ************************************************************** ********** REVIEW * JSP, Servlets & J2EE * JSP-consuming XML- Transforming XML- Producting XML- RELATIONSHIP WITH XSLT * STATUS OF SEVERAL JSP / XML EFFORTS (Drama)