How to use the XML Web DataWindow

The easiest way to use the XML Web DataWindow in your Web applications is to do the following:

  1. Create a new DataWindow object or select an existing DataWindow object that you want to display in a Web browser.

    For information, see “Designing DataWindow objects for the Web DataWindow”.

  2. Set JavaScript Generation properties for the static JavaScript of the XML Web DataWindow if you have not already done so.

    For information, see “Using JavaScript caching for Web DataWindow methods”.

    NoteReusing static JavaScript for the XML Web DataWindow If you are using the static JavaScript caching feature that was introduced with the HTML Web DataWindow, then you must regenerate and redeploy this static JavaScript for the XML Web DataWindow (and the XHTML Web DataWindow). You need to do this only once.

  3. In the Web server’s root publishing folder, create distinct Web publishing folders (for static JavaScript) and JavaScript publishing folders (for dynamic JavaScript) and set the Web and JavaScript Generation properties (that point to these folders) for your DataWindow.

    If you do not create these folders, the generator creates them for you. If you do not set these properties, then the default object model creates a temp publishing folder _tmp automatically.

    NoteThe next three steps The next three steps involve creating a JSP target and a Web/JSP DataWindow page and using the Web DataWindow DTC. For information about these topics, see the Working with Web and JSP Targets book.

  4. Create a new JSP target using the JSP Target wizard on the Target tab page in the New dialog box.

    In the JSP Target wizard in the Select Object Model page, you specify whether you are using the default object model or not using any object model. You can also specify that the object model automatically clear the _tmp folder (if one is created).

  5. Create a Java Server Page (JSP) using the Web/JSP DataWindow Page wizard on the JSP tab page in the New dialog box.

    In the Web/JSP DataWindow Page wizard, you specify whether you are using the Standard HTMLGenerator105 component, a custom HTMLGenerator105 component that you developed and deployed to EAServer, or a DataWindow container.

  6. In the Sybase Web DataWindow DTC Properties, select the XML generation format.

    The XML generation format results in the separate generation of data and presentation in XML and XSLT for transformation to XHTML, and is the optimal format for the XML Web DataWindow.

  7. Build and deploy the JSP target.

  8. Display the results in the browser by typing in the URL.