%@ page info="Review session and select code and host you wish to use." %>
<%@ page import="WebFlow.*" %>
<%@ page import="WebFlow.ContextManager.*" %>
<%@ page errorPage="/Generic/Error.jsp" %>
Sesson List
<%
//String userName=storeInfo.getTableVal("userName");
String problemName=request.getParameter("problemName");
String problemChoice = request.getParameter("probchoice");
ContextManager cm = null;
if(problemName.endsWith("SLAVEWFS")) {
int index = problemName.lastIndexOf("SLAVEWFS");
problemName = problemName.substring(0,index);
cm=modserver.getContextManagerForSlave();
storeInfo.setTablePair("archiveType","slaveProblemname");
} else {
cm=modserver.getContextManager();
storeInfo.setTablePair("archiveType","masterProblemname");
}
storeInfo.setTablePair("problemName",problemName);
if(problemChoice.equals("Edit") || problemChoice.equals("ViewData") ) {
String[] sessionList = cm.listProblemSessions(problemName);
int sessionListSize = sessionList.length;
//if(!sessionList[0].equals("null")) {
if(sessionListSize != 0) {
%>
Session Selection
For the problem you selected, you have the following sessions. Each
time you edit a particular problem, a new session is created for you, so
all of the old information will be saved. You can also delete sessions you
no longer wish to keep and visualize your data which you have already created after submitting the job.
<% } else { //if(sessionList)
%>
You don't have your session archive.
<%
}
%>
<% } else { //if(problemChoice)
cm.removeProblem(problemName);
%>
The problem archive, <%= problemName %> was deleted.
<%
}
%>