%@page import="imageboard.dao.ImageboardDAO"%> <%@page import="imageboard.dto.ImageboardDTO"%> <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <% String realFolder = request.getServletContext().getRealPath("/storage"); MultipartRequest mr = new MultipartRequest(request, realFolder, 1024*1024*5, "utf-8"); int seq = Integer.parseInt(request.getParameter("seq")); int pg = Integer.parseInt(request.getParameter("pg")); String imageId = mr.getParameter("imageId"); String imageName = mr.getParameter("imageName"); int imagePrice = Integer.parseInt(mr.getParameter("imagePrice")); int imageQty = Integer.parseInt(mr.getParameter("imageQty")); String imageContent = mr.getParameter("imageContent"); String imageFile = mr.getOriginalFileName("imageFile"); // filesystemname ImageboardDTO dto = new ImageboardDTO(); dto.setSeq(seq); dto.setImageId(imageId); dto.setImageName(imageName); dto.setImagePrice"> <%@page import="imageboard.dao.ImageboardDAO"%> <%@page import="imageboard.dto.ImageboardDTO"%> <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <% String realFolder = request.getServletContext().getRealPath("/storage"); MultipartRequest mr = new MultipartRequest(request, realFolder, 1024*1024*5, "utf-8"); int seq = Integer.parseInt(request.getParameter("seq")); int pg = Integer.parseInt(request.getParameter("pg")); String imageId = mr.getParameter("imageId"); String imageName = mr.getParameter("imageName"); int imagePrice = Integer.parseInt(mr.getParameter("imagePrice")); int imageQty = Integer.parseInt(mr.getParameter("imageQty")); String imageContent = mr.getParameter("imageContent"); String imageFile = mr.getOriginalFileName("imageFile"); // filesystemname ImageboardDTO dto = new ImageboardDTO(); dto.setSeq(seq); dto.setImageId(imageId); dto.setImageName(imageName); dto.setImagePrice"> <%@page import="imageboard.dao.ImageboardDAO"%> <%@page import="imageboard.dto.ImageboardDTO"%> <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <% String realFolder = request.getServletContext().getRealPath("/storage"); MultipartRequest mr = new MultipartRequest(request, realFolder, 1024*1024*5, "utf-8"); int seq = Integer.parseInt(request.getParameter("seq")); int pg = Integer.parseInt(request.getParameter("pg")); String imageId = mr.getParameter("imageId"); String imageName = mr.getParameter("imageName"); int imagePrice = Integer.parseInt(mr.getParameter("imagePrice")); int imageQty = Integer.parseInt(mr.getParameter("imageQty")); String imageContent = mr.getParameter("imageContent"); String imageFile = mr.getOriginalFileName("imageFile"); // filesystemname ImageboardDTO dto = new ImageboardDTO(); dto.setSeq(seq); dto.setImageId(imageId); dto.setImageName(imageName); dto.setImagePrice">
<%@page import="com.oreilly.servlet.MultipartRequest"%>
<%@page import="imageboard.dao.ImageboardDAO"%>
<%@page import="imageboard.dto.ImageboardDTO"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%
String realFolder = request.getServletContext().getRealPath("/storage");
MultipartRequest mr = new MultipartRequest(request, realFolder, 1024*1024*5, "utf-8");
int seq = Integer.parseInt(request.getParameter("seq"));
int pg = Integer.parseInt(request.getParameter("pg"));
String imageId = mr.getParameter("imageId");
String imageName = mr.getParameter("imageName");
int imagePrice = Integer.parseInt(mr.getParameter("imagePrice"));
int imageQty = Integer.parseInt(mr.getParameter("imageQty"));
String imageContent = mr.getParameter("imageContent");
String imageFile = mr.getOriginalFileName("imageFile"); // filesystemname
ImageboardDTO dto = new ImageboardDTO();
dto.setSeq(seq);
dto.setImageId(imageId);
dto.setImageName(imageName);
dto.setImagePrice(imagePrice);
dto.setImageQty(imageQty);
dto.setImageContent(imageContent);
dto.setImageFile(imageFile);
ImageboardDAO dao = new ImageboardDAO();
int su = dao.modifyimageboard(dto);
request.setAttribute("su", su);
request.setAttribute("imageName", imageName);
RequestDispatcher dispatcher = request.getRequestDispatcher( "../main/index.jsp?req=imageboardModifyResult");
dispatcher.forward(request, response);
%>