Develop > Presentation layer > Work with JSP pages > WebSphere Commerce JSP viewer


Create XML files using the XMLGenerator

Use the XMLGenerator to create XML files for the data beans.

  1. Install the data bean to XMLGenerator
    The XMLGenerator takes an already populated WebSphere Commerce data bean and prints out an XML file based on it. Since the XMLGenerator is going to print out an XML file based on real WebSphere Commerce data, install it into the WebSphere Commerce workspace.

  2. Generate an XML file using the data bean to XMLGenerator
    After you have installed the data bean to XMLGenerator, you can start generating XML files for the data beans.

  3. Set up the JSP viewer tool
    Before you can view store JSP pages in the JSP viewer, set up the JSP viewer tool.

  4. Configure the JSP viewer
    The Web controller in the JSP viewer provides JSP pages with linkages to other JSP pages. Without a WebSphere Commerce environment, the HTML links in the JSP pages would not work. The Web controller mimics WebSphere Commerce run time using a XML configuration file.

  5. Modify the data bean location XML file
    After you have generated all of the required files for the data beans, modify the data bean location XML file in the JSP viewer tool workspace to account for the newly created XML files.


Related concepts

WebSphere Commerce JSP viewer


+

Search Tips   |   Advanced Search