XML Server Getting Started    
Table of Content 
Part 1 Welcome to XML Server Pages
............................................................................................................................. 5
Introduction.................................................................................................................................................................................................. 5
What XMLSP is all about.......................................................................................................................................................................... 5
JavaScript language and XMLSP client side run time ......................................................................................................................... 5
Object oriented programming with XMLSP.......................................................................................................................................... 5
XMLSP functions........................................................................................................................................................................................ 5
Cross platform development ..................................................................................................................................................................... 6
Database connectivity................................................................................................................................................................................. 6
XMLSP WebApplications......................................................................................................................................................................... 6
Installation options for MSXML parser on client Workstations......................................................................................................... 6
Sample XML Server Page.......................................................................................................................................................................... 7
Part 2. Programming XML Server Pages.
...................................................................................................................... 9
Introduction.................................................................................................................................................................................................. 9
XML Server Pages Tags: quick start........................................................................................................................................................ 9
XML objects in XMLSP scripting.......................................................................................................................................................... 11
Accessing server side objects from the client code with  XML over HTTP  calls ...................................................................... 13
Building server side objects for XML over HTTP access from client............................................................................................. 15
Authoring Custom Elements ................................................................................................................................................................... 17
Extending Existing Elements (Multiple Inheritance).......................................................................................................................... 21
Controlling look and feel of XMLSP objects ....................................................................................................................................... 24
Scripting of XMLSP Events.................................................................................................................................................................... 25
Programming Windows and Dialog Boxes........................................................................................................................................... 28
Debugging XMLSP screens .................................................................................................................................................................... 32
XML Server Pages: Plain HTML Container ........................................................................................................................................ 33
Part 3 XMLControl and DW2Java
..................................................................................................................................... 35
Introduction................................................................................................................................................................................................ 35
XMLControl dataSources ........................................................................................................................................................................ 35
Generating XMLControl dataSource from PowerBuilder DataWindow object............................................................................. 35
XMLControl Data Layout........................................................................................................................................................................ 37
Part 4 Tutorial
...................................................................................................................................................................................... 39
Warming up: copyright.jsp ...................................................................................................................................................................... 40
Getting on the fast track: Step0.jsp......................................................................................................................................................... 41
CSS Styles  and positioning: Step1.jsp.................................................................................................................................................. 42
Event driven it is: step2.jsp...................................................................................................................................................................... 44
More controls: step3.jsp........................................................................................................................................................................... 46
Validations and event canceling: step4.jsp ........................................................................................................................................... 47
XMLHTTPRequest: step5.jsp................................................................................................................................................................. 49
Dialogs  windows: step6.htm.................................................................................................................................................................. 52
Dialogs  windows   parameter passing: step7.html ............................................................................................................................. 54
Inheritance (extending standard objects): step8.jsp............................................................................................................................. 56
Appendix A: ServletParameters   Helper Class used in this tutorial................................................................................................ 59
Appendix C : XPathAPI   Helper Class used in this tutorial............................................................................................................. 65
 2000 2002 Computer Technology Inc. All rights reserved. 
Page 3 




J2EE Web Hosting Tundra XML Server Pages J2EE Hosting




 
TotalRoute.net Business web hosting division of Vision Web Hosting Inc. All rights reserved.