System.err.println("Error in uploading: " + error.getCode() + " - " + error.getDefaultMessage());
}
return "upload/uploadMenu";
}
modelMap.put("realPath", WebUtils.getRealPath(servletContext, ""));
UploadCommand uploadCommand = new UploadCommand(request.getParameterMap(), modelMap);
uploadCommand.execute();
modelMap.put("uploadResponse", uploadBean);
System.out.println("----------------uploadbean---------------------------" + uploadBean);
System.out.println("uploading file: " + uploadBean.getFiledata().getFileItem().getContentType());
System.out.println("-------------------------------------------");