JSP 파일업로드 폼

JAVA/JSP 2015. 8. 25. 17:00

<%@ page language="java" contentType="text/html; charset=EUC-KR"%>

<html>

<head>

<title>FileUpload Form</title>

</head>

<body>

<center>

<form action="fileUpload.jsp" method="post" enctype="multipart/form-data">

<table border=1>

   <tr>

      <td colspan=2 align=center><h3>파일 업로드 폼</h3></td>

   <tr>

      <td>올린 사람 : </td><td><input type="text" name="name"></td><br>

   </tr>

   <tr>

      <td>제목 : </td><td><input type="text" name="subject"></td><br>

   </tr>

   <tr>

//타입이 file로하면 자동으로 구현됨

      <td>파일명1 : </td><td><input type="file" name="fileName1"></td><br>

   </tr>

   <tr>

      <td>파일명2 : </td><td><input type="file" name="fileName2"></td><p/>

   </tr>

   <tr>

      <td colspan=2 align=center><input type="submit" value="전송"></td>

   </tr>

</table>

</form>

</center>

</body>

</html>

'JAVA > JSP' 카테고리의 다른 글

JSP 파일업로드 확인  (0) 2015.08.25
JSP 파일업로드 처리  (0) 2015.08.25
JSP 오라클 트랜잭션  (0) 2015.08.24
JSP 오라클 ResultSet  (0) 2015.08.24
JSP 오라클 Statement  (0) 2015.08.21
블로그 이미지

왕왕왕왕

,