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.
- 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.
- 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.
- Set up the JSP viewer tool
Before you can view store JSP pages in the JSP viewer, set up the JSP viewer tool.
- 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.
- 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