<%@ taglib uri="http://xmlns.oracle.com/j2ee/jsp/tld/ojsp/personalization.tld" prefix="op" %>
<%@ taglib uri="http://xmlns.oracle.com/j2ee/jsp/tld/ojsp/jml.tld" prefix="jml" %>
<%@page import="oracle.jsp.webutil.personalization.Item" errorPage="error.jsp" contentType="text/html;charset=UTF-8"%>
<html>
<head><title>Stateless Personalization Demo</title></head>
<body bgcolor="#FFFFFF">
<font size=+0>

<h2>Stateless Personalization Demo - Recommendation Page</h2>

<op:getRecommendations from="top" storeResultsIn="yourItems"
	maxQuantity="<%= request.getParameter(\"maxQuantity\") %>" 
	tuningDataSource="DEMOGRAPHIC" tuningInterestDimension="NAVIGATION"
	tuningPersonalizationIndex="LOW" tuningProfileDataBalance="HISTORY"
	tuningProfileUsage="INCLUDE"
	filteringTaxonomyID="1"
	filteringMethod="INCLUDE_ITEMS"
	filteringCategories="1+2"
>
    <p><b><i> We recommend: </p></b></i>

    <jml:for id="i" from="0" to="<%= yourItems.length-1%>" >
       <li> Item<%= i.intValue()+1 %>: type: <%= yourItems[i.intValue()].getType() %> ID: <%= yourItems[i.intValue()].getID() %> </li>
    </jml:for>

</op:getRecommendations>

<p> Press <b>Close</b> to end your Personalization session </p>

<FORM ACTION="stateless_close.jsp" METHOD="POST">
<INPUT TYPE="submit" VALUE="Close"  >
</FORM>

</font>
</body>
</html>
