Develop > Presentation layer > Customize marketing > Work with Product Advisor > JSP pages in Product Advisor
Sample: Product Advisor JSP files
Product Advisor uses JSPs for building dynamic Web content for shopping metaphors. You can use WebSphere Commerce development environment to design the pages. This section refers to sample JSP file.
Product Advisor provides the following sample JSP files:
These samples are located...
- WC_INSTALL/samples/web/pa/
The samples must be copied to the following directory prior to use:
To link to one of the samples, use the following URL:
host /webapp/wcs/stores/servlet/ storedir / sample_page
Where:
- host
- The the site's host name.
- storedir
- The directory that contains the store's Web assets.
- sample_page
- The name of the Product Advisor sample being used.
- Sample: Product Exploration JSP files
The Product Exploration sample page uses the TableElement data bean to represent the table header and the table cells. The DynamicForm widget bean then displays the product exploration table.
- Sample: Product Comparison JSP files
Product Comparison data is a side by side comparison of a set of products. Each product is represented as either a row or a column in the table, and the values for the product's features are shown in the cells of the table. This example uses the TableElement bean for the table header and the table cells. The DynamicTable bean then displays the product comparison table.
- Sample: Guided Sell JSP file
The Guided Sell page displays a list of questions and their corresponding answers that customers can select from. Each answer determines the next question, Product Advisor metaphor, or other URL that the customer will see. The Guided Sell sample JSP file uses the SalesAssistantDataBean.getQuestion() method to display the current question, and then uses the getAnswers() method to retrieve all possible answers for that question. Finally, the SalesAssistantHistoryDataBean and SalesAssistantHistoryWidget bean retrieve and display the customer's question and answer history.
Related concepts
Related tasks