TAILIEUCHUNG - Oracle XSQL- P23

Oracle XSQL- P23Welcome to the exciting world of eXtended Structured Query Language (XSQL) development! What’s so exciting? Efficiency and ease of use. XSQL isn’t some razzle-dazzle technology to wow your users. It also isn’t the latest X standard du jour that no one can stop talking about until you ask, “But what does it do for me today?” The problem with all of the great stuff out there is that no one technology does it all. | 420 Chapter 14 head head body xsl apply-templates body html xsl template xsl template match request b Request b xsl apply-templates select xsl template xsl template match session b Session b xsl apply-templates select xsl template xsl template match cookies b Cookies b xsl apply-templates select xsl template xsl template match p Name xsl value-of select name . Value xsl value-of select . p xsl template xsl stylesheet This will give you a listing of all of the parameters regardless of their names. Example output for this is shown in Figure . From here it is a simple matter to create a set of hidden-form parameters that hold these values. Then you can use easily pass the values on as form submissions or use them in JavaScript. Here is how you do it xsl template match input type hidden xsl attribute name name xsl value-of select name . xsl attribute xsl attribute name value xsl value-of select . xsl attribute input You ll see more examples of hidden-form variables and the role they can play in JavaScript and XSLT integration when you work with the price editor later in the chapter. Building XSQL Web Applications 421 el http localhost xsql momnpup a 1 b 2 c 3 - Microsoft Internet Explorer _ n Eile Edit View Favorites Tools Help Back 0 ï ft Search Favorites S Meda fè 7 U El 15 Address http Ax atTost xsql momnp jp d a l b 2ac 38 I Request Name c Value 3 Name b Value 2 Name a Value 1 Session Name categorynamesess Value Bathroom Name session-sal Value Cookies Name category name cookie Value Bathroom Name lons-living-cookie Value To Life v Figure Output of all parameters. Stateless Paging So far the product catalog doesn t have a lot of data in it. A list of all of the products in the catalog probably still wouldn t necessitate a scroll bar in the browser window. However what if your queries could easily return thousands of rows Even if your queries are just returning tens of rows you want your users to be able to navigate through them in a

TỪ KHÓA LIÊN QUAN
TÀI LIỆU LIÊN QUAN