Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống
1
/ 593 trang
THÔNG TIN TÀI LIỆU
Thông tin cơ bản
Định dạng
Số trang
593
Dung lượng
6,75 MB
Nội dung
[...]... with the rest of XSQL, so you don’t give up XSQL s elegance and simplicity—you just augment it XSQL becomes even more powerful when you use it in conjunction with other Oracle technologies, such as Oracle Text and Oracle XML DB You’ll read more about that in the next section Introducing Oracle XSQL Client Custom Action Handler 1 Custom Action Handler 2 some-page .xsql XSQL Page Processor XSQL Servlet com.your.custom.ActionHandler1... com.your.custom.ActionHandler2 Figure 1.5 XSQL with action handlers Client Custom Action Handler 1 Custom Action Handler 2 some-page .xsql XSQL Servlet XSQL Page Processor Custom Serializer Figure 1.6 XSQL with serializers XSQL and Other Oracle Technologies XSQL can be used with any database that supports JDBC Being an Oracle product, though, it is optimized for use with the Oracle Server and its family of database... Integrating XSQL with XSLT 397 Making the XSQL Pages Writing the Stylesheets 397 401 Passing Parameters Passing Using SQL Setting Stylesheet Parameters Using Other XSQL Parameters Stateless Paging Challenges of Pagination Pure XSQL Stateless Paging XSQL Data Editor 415 415 417 418 421 422 422 428 Editor Architecture XSQL Development Developing the XSQL Interface 428 430 431 Javascript and XSQL Development... This chapter serves as a general overview to XSQL, as well as the foundation technologies The first topic covered is an examination of what XSQL solves This includes some short code examples that illustrate how powerful XSQL can be The next discussion explores how XSQL relates to other Oracle technologies You don’t have to use XSQL exclusively with Oracle, but XSQL makes a great combination The chapter... Client XSQL Page < /xsql: query> SELECT ename, job, sal FROM emp WHERE deptno=20 ORDER BY sal < /xsql: query> 1 Database 4 12 5 2 3 HTTP Server XSQL Servlet XSQL Processor 11 6 10 9 Dynamically Generated Web Page XSLT Processor 8 7 SQL Result Set ENAME JOB SAL SMITH ADAMS JONES SCOTT FORD CLERK CLERK MANAGER ANALYST ANALYST 800 1100 2975 3000 3000 XSLT Stylesheet Figure 1.4 Core XSQL architecture The XSQL. .. Chapter 1 technologies Oracle provides a rich Java application program interface (API) for database access and XML You’ll use these when extending XSQL with action handlers and serializers, and also when using XSQL from inside programs You can also use Oracle JDeveloper to help you develop your XSQL pages This section looks at the core technologies and how they relate to XSQL Oracle Text SQL is great... On Database Modifications with XSQL Inputting HTML Forms 115 115 Form Parameters and the Canonical Schema Using xsql: insert-request Using xsql: update-request Using xsql: delete-request Modifying with xsql: dml Chapter 7 113 116 119 120 121 Handling XML Documents Handling Posted XML Handling XML Parameters Inserting XML as XML 122 123 124 128 129 Moving On Chapter 8 130 Oracle SQL SQL Syntax 131 131 Case... it’s time to see how XSQL greatly simplifies the process of developing for this platform XSQL as a Keystone Technology XSQL is a keystone, rather than a cornerstone, technology The Oracle RDBMS is a great example of a cornerstone technology There are many companies whose entire businesses are built around their Oracle databases Java and HTTP are also cornerstone technologies However, XSQL is more like... like from the XSQL page As with the action, you can also make use of parameters passed on by the user The only expectation is that the action handler generate XML to be added to the datagram Then, a stylesheet specified in the XSQL page can be used to convert the datagram for presentation Figure 1.5 diagrams the XSQL architecture with action handlers There is one final trick up XSQL s sleeve... the Oracle RDBMS is the technology, as well as the market, leader in its space In the next few hundred pages, XSQL allows you to bring these powerful pieces together You’ll learn how you can use XSQL to instantly present your database data on the Web You’ll develop a complete application with just XSQL and eXtensible 1 2 Chapter 1 Stylesheet Language Transformation (XSLT) You’ll also see how to use XSQL . 82 xsql: ref-cursor-function 83 xsql: include-owa 83 xsql: include-request-params 84 xsql: include-param 85 xsql: include-xml 85 xsql: set-page-param 85 xsql: set-session-param 86 xsql: set-cookie 87 xsql: set-stylesheet-param. Introducing Oracle XSQL 1 What XSQL Solves 2 The Problems of Web Application Development 2 XSQL as a Keystone Technology 5 XSQL and Other Oracle Technologies 11 Oracle Text 12 XML Support 12 Oracle. 86 xsql: set-cookie 87 xsql: set-stylesheet-param 88 xsql: action 89 xsql: include -xsql 89 xsql: insert-request 90 xsql: update-request 91 xsql: delete-request 92 xsql: insert-param 93 Linking to XSLT Stylesheets