Develop > Presentation layer > Customize marketing > Work with Product Advisor > JSP pages in Product Advisor > Sample: Product Advisor JSP files


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.

The Guided Sell sample JSP file is located...

WCDE_INSTALL\samples\web\pa\sa51.jsp

The Guided Sell sample JSP file uses the following beans:

Type of Bean Bean Name
WebSphere Commerce beans CategoryDataBean
Dynamic data beans ProductCountDataBean, GenericLinkDataBean, SalesAssistantDataBean, SalesAssistantHistoryDataBean
Widget beans SalesAssistantHistoryWidget


Related concepts

Dynamic data beans

Widget beans

Related reference

Sample: Product Advisor JSP files


+

Search Tips   |   Advanced Search