<%@ page import="com.flavorpill.advdep.data.ListData" %><%
// if subStat is not available something went wrong
if(subStat == null){
response.sendRedirect("index.jsp?error=noResponse");
return;
}
// get list 81, get the status for it
ListData listResult = subStat.getList(81);
int status = subStat.getSubscribeState(81);
String email = subStat.getEmail();
// the order of the messages must match the possible states:
// currently: failure, onList, success
String[] messages = {
"I am sorry, but your attempt to subscribe " + email + " has failed.",
"It appears " + email + " is already subscribed to The Ambrose newsletter.",
"Welcome.
The address " + email + " is now subscribed to The Ambrose newsletter."
};
%>
The Ambrose Subscribe
<%= 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 unsubscribe.