<%@ page language="java" errorPage="error.jsp" contentType="text/html;charset=UTF-8"%>
<%@ taglib uri="http://xmlns.oracle.com/j2ee/jsp/tld/ojsp/personalization.tld" prefix="op" %>
<%   String REName =request.getParameter("REName");
   if (REName==null) { %>
<jsp:forward page="setup.jsp" />
<% } else { 
%>
<html>
<head><title> Stateless Personalization Demo</title></head>
<body bgcolor="#FFFFFF">
<font size=+0>

<h2>Stateless Personalization Demo - Start RE Session Page</h2>

<op:startRESession REName="<%= REName %>" 
	REURL="<%= request.getParameter(\"REURL\") %>" 
	RESchema="<%= request.getParameter(\"RESchema\") %>" 
	REPassword="<%= request.getParameter(\"REPassword\") %>"
	RECacheSize="3242" REFlushInterval="150000"
	session="false" 
	userType="<%= request.getParameter(\"userType\") %>" 
	userID="<%= request.getParameter(\"userID\") %>" />
                   
<p> <b><i>Welcome! Your RE session has been started.</p></b></i>
<p>Enter maximum number of items desired and press <b>Get Recommendations</b> to get your recommendations: </p>


<FORM ACTION="stateless_get.jsp" METHOD="POST" >
<p> maxQuantity <INPUT TYPE="text" NAME="maxQuantity" SIZE=2 value="3" > </p>
<INPUT TYPE="hidden" NAME="REName" VALUE="<%= REName %>" >
<INPUT TYPE="hidden" NAME="REURL" VALUE="<%= request.getParameter("REURL")  %>" >
<INPUT TYPE="hidden" NAME="RESchema" VALUE="<%= request.getParameter("RESchema") %>"  >
<INPUT TYPE="hidden" NAME="REPassword" VALUE="<%= request.getParameter("REPassword") %>" >
<INPUT TYPE="hidden" NAME="userType" VALUE="<%= request.getParameter("userType") %>"  >
<INPUT TYPE="hidden" NAME="userID" VALUE="<%= request.getParameter("userID") %>" >
<INPUT TYPE="submit" VALUE="Get Recommendations"  >
</FORM>

<% } %>
</font>
</body>
</html>
