this.params.put(next.getFieldName(), next);
Object old = params.get(next.getFieldName()); if(old != null) { if(old instanceof List) ((List)old).add(next); else { ArrayList list = new ArrayList(); list.add(old); list.add(next); params.put(next.getFieldName(), list); } } else params.put(next.getFieldName(), next);
	private void parseMultipartContent(HttpServletRequest request) {		DiskFileUpload upload = new DiskFileUpload();		upload.setSizeThreshold(0);		try {			this.params = new Hashtable();			List items = upload.parseRequest(request);			for(Iterator i = items.iterator(); i.hasNext(); ) {				FileItem next = (FileItem) i.next();				this.params.put(next.getFieldName(), next);			}		} catch (FileUploadException e) {			// TODO: handle this			e.printStackTrace();		}	}