The easiest way to use the XML Web DataWindow in your Web applications is to do the following:
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”.
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”.
Reusing 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.
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.
In the Java implementation for your JSP page, ensure you are calling the GenerateXMLWeb method on the server component to request 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.
For an example of a JSP page calling the GenerateXMLWeb method, see the XML WebDataWindow Code Sample in the DataWindow N-Tier section on the CodeXchange Web site.
Display the results in the browser by typing in the URL.