306 Implementing Web Applications with CM Information Integrator for Content and ODWEK
DiskFileUpload upload = new DiskFileUpload();
try {
// Parse the request
List /* FileItem */ items = upload.parseRequest(req);
// Process the uploaded items
Iterator iter = items.iterator();
while (iter.hasNext()) {
FileItem item = (FileItem) iter.next();
if (item.isFormField()) {
params.put(item.getFieldName(),item.getString());
} else {
mfile = item.get();
}
}
// Create ITEM and Item Part in CM
// Get ICM Manager from session
RBICMModel ICMMgr = (RBICMModel)
req.getSession().getAttribute("ICMMgr");
if( ICMMgr == null ) {
ICMMgr = new RBICMModel();
ICMMgr.setConnectParams(
(String)req.getSession().getAttribute("CMSERVER"),
(String)req.getSession().getAttribute("CMUSER"),
(Strin ...