resp.setContentType("application/xml");
//resp.setContentType("text/plain");
//String filename = getServletContext().getRealPath("/WEB-INF/web.xml"); //getContext TODO
//output.println(filename);
FileItemIterator iter = null;
FileItemStream item = null;
//ServletFileUpload upload = new ServletFileUpload();
try {
iter = upload.getItemIterator(req);
} catch (FileUploadException fue) {
output.println("Bad servlet iter!");
System.out.println("Bad out iter!");
fue.printStackTrace();
}
try {
item = iter.next();
} catch (FileUploadException fue) {
output.println("Bad servlet next!");
System.out.println("Bad out next!");
fue.printStackTrace();
}