upload1 [JSP] how to upload image using JSP This is the form html Here is upload.jsp -1) { String s = new String(b,0,x); if(s.startsWith(boundary)) { state = 0; //out.println("name="+name+" "); //out.println(fileName+" "); name = null; contentType2 = null; fileName = null; }else if(s.startsWith("Content-Disposition") && state==0) { state = 1; if(s.indexOf("filename=") == -1) name = s.substring(s.indexOf("name=") + "name=".length(),s.lengt.. 2009. 1. 21. 이전 1 다음