《市场营销的定义和发展过程11图文精》由会员分享,可在线阅读,更多相关《市场营销的定义和发展过程11图文精(15页珍藏版)》请在金锄头文库上搜索。
1、 public void setAllowedFilesList(String s /String s1 = ; if(s != null String s2 = ; for(int i = 0;i = 0 s1 = s.substring(0,s.lastIndexOf(; s2 = s.substring(s.lastIndexOf( + 1; if(s.lastIndexOf(/ = 0 s1 = s.substring(0,s.lastIndexOf(/; s2 = s.substring(s.lastIndexOf(/ + 1; s1 = s1.length( != 0 ? s1 :
2、 /; java.io.File file = new java.io.File(s1; if(file.exists( flag = true; if(i = 0 if(isVirtual(s1 s1 = m_application.getRealPath(s1; if(s1.endsWith(s3 s1 = s1 + s2; else s1 = s1 + s3 + s2; return s1; if(flag if(m_denyPhysicalPath throw new IllegalArgumentException(Physical path is denied (1125.; el
3、se return s; else throw new IllegalArgumentException(This path does not exist (1135.; if(i = 1 if(isVirtual(s1 s1 = m_application.getRealPath(s1; if(s1.endsWith(s3 s1 = s1 + s2; else s1 = s1 + s3 + s2; return s1; if(flag throw new IllegalArgumentException(The path is not a virtual path.; else throw
4、new IllegalArgumentException(This path does not exist (1135.; if(i = 2 if(flag if(m_denyPhysicalPath throw new IllegalArgumentException(Physical path is denied (1125.; else return s; if(isVirtual(s1 throw new IllegalArgumentException(The path is not a physical path.; else throw new IllegalArgumentException(This path does not exist (1135.; else return null; public void uploadInFile(String s throws IOException,SmartUploadException /boolean flag = false; int i = 0;