Develop > Presentation layer > Customize marketing > Work with Product Advisor > JSP pages in Product Advisor > Sample: Product Advisor JSP files
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.
The ProductExploreDataBean is responsible for creating the product exploration data. The DynamicForm and TableElement widget beans specify parameters for the table header, the table cell, and finally the table itself. You should be aware of the following notable parameters:
- The orientation property refers to the layout of the feature names, either horizontally or vertically. If the parameter is horizontal, then the specified feature names display in a row. If the parameter is vertical (the default), then the specified feature names display in a column.
- The formMode property enables you to select between a "drill-down" style of Product Exploration where the customer selects one attribute value at a time and only valid remaining values are shown, and a single submit style where the customer can select multiple values (with an assumed operation of "=") before pressing a submit button. The former guarantees that something will always be found, but the latter could result in no matches.
- The undoText property allows you to specify the image to use for the undo buttons.
The Product Exploration sample JSP file is located...
WCDE_INSTALL\samples\web\pa\pe51.jsp
The Product Exploration sample JSP file uses the following beans:
Type of Bean Bean Name WebSphere Commerce beans CategoryDataBean Dynamic data beans ProductCountDataBean, ProductExploreDataBean, GenericLinkDataBean Widget beans DynamicForm, TableElement
Related concepts
Related reference
Sample: Product Advisor JSP files