<%@ page import="ContextAdmin" %>
<%@ page import="java.util.Enumeration" %>
<%@ include file="contextAdmin.html" %>
<%
String param = request.getParameter("submit");
if (param != null) {
contextAdmin.init(request);
if (param.equals("View All Contexts")) {
Enumeration enum = contextAdmin.getContextNames();
while (enum.hasMoreElements()) {
String name = (String)enum.nextElement();
%>
CONTEXT NAME: <%= name %>
<%
String[] contextInfoArray = contextAdmin.getContextInfo(name);
for (int i=0; i
- <%= contextInfoArray[i] %>
<%
}
%>
<%
}
}
else if (param.equals("Add Context")) {
%>
<%= contextAdmin.addContext() %>
<%
}
else if (param.equals("Remove Context")) {
%>
<%= contextAdmin.removeContext() %>
<%
}
}
else out.println("ERROR: Null Request Parameter Value");
%>