<%@ page language="java" contentType="text/html; charset=EUC-KR"
pageEncoding="EUC-KR"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=EUC-KR">
<title>Insert title here</title>
</head>
<body>
<%
request.setCharacterEncoding("euc-kr");
String name = request.getParameter("name");
String subject = request.getParameter("subject");
String filename1 = request.getParameter("filename1");
String filename2 = request.getParameter("filename2");
%>
올린사람:
<%=name%><br> 제목:
<%=subject%><br> 파일명1 :
<a href="upload/<%=filename1%>"><%=filename1%></a>
<br> 파일명2 :
<a href="upload/<%=filename2%>"><%=filename2%></a>
<br>
</body>
</html>
'JAVA > JSP' 카테고리의 다른 글
JSP Thumbnail 폼 (0) | 2015.08.25 |
---|---|
JSP 파일업로드 (업로드되는 디렉터리 & cos.jar 추가 및 다운로드) (0) | 2015.08.25 |
JSP 파일업로드 처리 (0) | 2015.08.25 |
JSP 파일업로드 폼 (0) | 2015.08.25 |
JSP 오라클 트랜잭션 (0) | 2015.08.24 |