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 in the following directory:
WCDE_installdir\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 |