BEA Logo BEA WLCS Release Release Number

  Corporate Info  |  News  |  Solutions  |  Products  |  Partners  |  Services  |  Events  |  Download  |  How To Buy

 

   WLCS Doc Home   |   Personalization Server MyBuyBeans Tour   |   Previous Topic   |   Next Topic   |   Contents   |   Index

Deploying the New MyBuyBeans

 

The following topics are covered here:

Viewing the New MyBuyBeans Portal

Logging in as a frequent shopper

Viewing infrequent shopper hints

Enhancing the MyBuyBeans Login

 


Viewing the New MyBuyBeans Portal

We've set up everything we need to view the new MyBuyBeans portal. Now we want to view the mpbb portal on the WebLogic Server. The portal requires you to log in. To view the frequent shopper personalization message, we'll log in using one of the users we created earlier, the user called cool. To view the infrequent shopper hints, we won't log into MyBuyBeans; the portal will then treat us as if we have zero Beanie Points.

Users for the MyBuyBeans tour must be created through the MyBuyBeans user registration page. Users added directly through the Personalization Server administration tools will not be able to log in. To create users by means of the registration page, go to the MyBuyBeans portal (bypassing the home page) and create a user as normal. To get to the portal, go to http://<machine-name>:<port>/mybuybeans.

Logging in as a frequent shopper

  1. In your browser, go to http://<wlhost>:<port>/mpbb.

  2. Log in using the user name cool with the password bean. This is the user we created who had 20 Beanie Points. You will see the messages when you log in because the classifier rule classifies the user as a FrequentShopper and the content selector rule FrequentShopperMessage retrieves messages to display to frequent shoppers.

Viewing infrequent shopper hints

  1. In your browser, go to http://<wlhost>:<port>/mpbb.

  2. Do not log into the portal. Instead, search for any item you wish.

  3. After the search completes, you will see a message in a Tutorial portlet. Because you didn't log in and the default Beanie Points value is zero, the system uses the InfrequentShopper classifier rule to classify you as an new shopper. The content selector rule Hints retrieves the hint message displayed to you as a new shopper.

 


Enhancing the MyBuyBeans Login

You can add a couple of lines of code to a login page to have the page increment each user's Beanie Points each time they visit MyBuyBeans.com. To enhance the login, insert code similar to the example below into the login page. The code increments logged in users' Beanie Points by 5 points each time they log in.

<%-- Add the current total to the users total in MyBuyBeansApp so we keep a count of the running total --%>

<um:getproperty id="bpoints" propertySet="MyBuyBeansApp" propertyName="BeaniePoints"/>
<%
long newTot = ((Long)bpoints).longValue() + 5;
Long newTotal = new Long(newTot);
%>
<um:setproperty propertySet="MyBuyBeansApp" propertyName="BeaniePoints"value="newTotal" />

The login page is <install-dir>\server\public_html\portals\buybeans\_userlogin.jsp. Additional pages that affect the login are <install-dir>\server\public_html\portals\buybeans\_userreg.jsp and <install-dir>\server\public_html\buybeans\home.jsp.