<%@ page import="com.flavorpill.advdep.data.ListData" %><%
// if unsubStat is not available something went wrong
if(unsubStat == null){
response.sendRedirect("index.jsp?error=noResponse");
return;
}
// get list 81, get the status for it
ListData listResult = unsubStat.getList(81);
int status = unsubStat.getSubscribeState(81);
String email = unsubStat.getEmail();
// the order of the messages must match the possible states:
// currently: failure, notOnList, success
String[] messages = {
"I am sorry, but your unsubscribe attempt failed.",
"It appears that " + email + " is not subscribed to The Ambrose newsletter.",
"The address " + email + " has been unsubscribed from The Ambrose newsletter."
};
%>
The Ambrose Unsubscribe
<%= messages[status] %>
If you have any
questions about subscription to this list, email us at subscriptions@ambrosehotel.com.
Or, if you've made this subscription in error, click to re-subscribe.