|
|
Editing the Example Portal
Now that you have identified the content you want to display to frequent and infrequent visitors, you need a place to put that content. In this chapter, you will view the pre-built JSP that will be used as a portlet to contain the content, and you will add that portlet to the exampleportal so that it shows up in the Acme Web page.
This topic includes the following sections:
Viewing the JSP
The JSP displays content based on whether the user is a frequent or infrequent visitor. The JSP in this procedure was created for you to use in this tour.
To view the page, follow these steps:
In particular, look for the rule="Hints" and rule="FrequentVisitorMessage" lines in the JSP. These identify the "Hints" and "FrequentVisitorMessage" content selectors you created in the previous chapter. The JSP reads the rules in those content selectors, looks at the number of AcmePoints the user has, and determines which set of content to display.
Building the Portlet
Now that you know tutorial.jsp will display the content, you need to identify it as a portlet that you can add to the exampleportal portal.
Adding the Portlet to the Portal
Now that you have created a portlet for the tutorial.jsp to display its content in the Acme Web site, you must connect that portlet to the exampleportal portal.
Notice that the tutorial portlet is displayed in the Associated Portlets table but is grayed out, indicating that it is inactive.
You have created a portlet, and you have added the portlet to a portal. This means the tutorial.jsp content will display content in the Acme Web site based on the amount of AcmePoints users have. In the next chapter, you will deploy the portal and test it to see content personalization in action.
|
Copyright © 2001 BEA Systems, Inc. All rights reserved.
|