<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP Page</title>
</head>
<body>
<%
// decode source request:
try {
MultipartFormDataRequest multiPartRequest = new MultipartFormDataRequest(request);
// get the files uploaded:
Hashtable files = multiPartRequest.getFiles();
ZipFile userFile = (ZipFile)files.get("bootstrap_file");
if (! files.isEmpty()) {
BootstrapDataManager bdm = new BootstrapDataManager(userFile);
bdm.bootstrapStudent();
bdm.bootstrapCourse();
bdm.bootstrapSection();
bdm.bootstrapBid();
bdm.bootstrapCompletedCourses();
bdm.bootstrapPreRequisite();
}
} catch (Exception error) {
// set error flag in session:
request.getSession().setAttribute("error", error);
// throw its further to print in error-page:
throw error;
}
%>
</body>
</html>
the BidDataManager takes in a ZipFile object in its constructor and i want to know how to convert an UploadFile object to a ZipFile object in order to pass it as a parameter..