<%@page import="javax.jdo.*,java.util.*,util.*,java.net.*,java.io.*"%> <%@page isThreadSafe="false"%> <%! static { WebAppMgr.enhanceAll(); } %> Adding Program

Select the Category and Insert
          the Pad File Path










Pad File Path: <% for (int rev=1;rev<19;rev++) %>
<% %>
<% String FilePath = request.getParameter("PadPath"); if (FilePath != null) { if (!"".equals(FilePath)) { if (!FilePath.endsWith("xml")) { System.err.println("Error, Not XML File"); //System.exit(0); } InputStream inFile=null; OutputStream outFile=null; try { System.setProperty("proxySet", "true"); System.setProperty("proxyHost", "10.0.1.254"); System.setProperty("proxyPort", "8080"); inFile = new URL(FilePath).openStream(); outFile = new FileOutputStream("NewPadFile.xml"); byte[] buffer = new byte[4096]; int bytesCount; System.out.println("DownLoading..."); while((bytesCount = inFile.read(buffer)) != -1) outFile.write(buffer, 0, bytesCount); System.out.println("DownLoad Complete!!!"); } catch (Exception e) { System.err.println("Error: " + e.getMessage()); } finally { try { inFile.close(); } catch (Exception e) { ; } try { outFile.close(); } catch (Exception e) { ; } } } } %>