<%@ 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></head>
<body>
<h2>removeDemographicRecord Tag </h2>
<% String type = request.getParameter("type");
   String value = request.getParameter("value");

   if( type != null ) {
%>
<op:removeDemographicRecord type="<%=type%>" value="<%=value%>"/>
The demographic information has been removed!
<hr>
<%
   }
%>


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

<form action="removedemographicrecord.jsp" method="post">
<table>
<tr><td>&nbsp;Type: </td><td><select name="type">
<% String[] types = new String[] {
"GENDER","AGE","MARITAL_STATUS","PERSONAL_INCOME","HOUSEHOLD_INCOME",
"IS_HEAD_OF_HOUSEHOLD","HOUSEHOLD_SIZE","RENT_OWN_INDICATOR"
};
   String[] descs = new String[] {
"Gender", "Age", "Marital Status", "Personal Income","Household Income",
"Is Head of Household", "Household Size", "Rent or Own"
};

   for( int i=0; i<types.length; i++) {
%>
<option value="<%=types[i]%>"><%=descs[i]%></option>
<%
   }
%>
</select></td></tr>
<tr><td>&nbsp;Value: </td><td><input type="text" name="value"/></td></tr>
</table>
<input type="submit" value="Remove">
</form>
</body>
</html>
