<%@ 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" %>

<html>
<head>
<title>Personalization Demo</title>
<meta http-equiv="Expires" content="0">
<meta http-equiv="pragma" content="no-cache">
</head>
<body>
<b><font size=+1>Set Vistor to Customer Tag</font></b>
<p>
<% String customerID = request.getParameter("customerID");
   if( customerID != null ) {
%>
<op:setVisitorToCustomer customerID="<%=customerID%>"/>
<p>Vistor has been set to customer!</p>

<form action="tagdemodriver.jsp" method="post">
<input type="hidden" name="target" value="Return"/>
<input type="submit" name="submit" value="Choose another tag"/>
</form>

<% } else {
%>
<form action="setvisitortocustomer.jsp" method="post">
<label>Customer ID:<input type="text" size=32 name="customerID"/><br></label>
<input type="submit" name="submit" value="Execute"/>
</form>
<% } %>
</body>
</html>
