<%@page import="imageboard.dto.ImageboardDTO"%> <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <% int seq = Integer.parseInt(request.getParameter("seq")); int pg = Integer.parseInt(request.getParameter("pg")); ImageboardDAO dao = new ImageboardDAO(); ImageboardDTO dto = dao.imageboardView(seq); int su = dao.deleteimageboard(seq); request.setAttribute("su", su); request.setAttribute("imageName", dto.getImageName()); RequestDispatcher dispatcher = request.getRequestDispatcher( "../main/index.jsp?req=imageboardDeleteResult"); dispatcher.forward(request, response); %>"> <%@page import="imageboard.dto.ImageboardDTO"%> <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <% int seq = Integer.parseInt(request.getParameter("seq")); int pg = Integer.parseInt(request.getParameter("pg")); ImageboardDAO dao = new ImageboardDAO(); ImageboardDTO dto = dao.imageboardView(seq); int su = dao.deleteimageboard(seq); request.setAttribute("su", su); request.setAttribute("imageName", dto.getImageName()); RequestDispatcher dispatcher = request.getRequestDispatcher( "../main/index.jsp?req=imageboardDeleteResult"); dispatcher.forward(request, response); %>"> <%@page import="imageboard.dto.ImageboardDTO"%> <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <% int seq = Integer.parseInt(request.getParameter("seq")); int pg = Integer.parseInt(request.getParameter("pg")); ImageboardDAO dao = new ImageboardDAO(); ImageboardDTO dto = dao.imageboardView(seq); int su = dao.deleteimageboard(seq); request.setAttribute("su", su); request.setAttribute("imageName", dto.getImageName()); RequestDispatcher dispatcher = request.getRequestDispatcher( "../main/index.jsp?req=imageboardDeleteResult"); dispatcher.forward(request, response); %>">
<%@page import="imageboard.dao.ImageboardDAO"%>
<%@page import="imageboard.dto.ImageboardDTO"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
int seq = Integer.parseInt(request.getParameter("seq"));
int pg = Integer.parseInt(request.getParameter("pg"));

ImageboardDAO dao = new ImageboardDAO();
ImageboardDTO dto = dao.imageboardView(seq);
int su = dao.deleteimageboard(seq);

request.setAttribute("su", su);
request.setAttribute("imageName", dto.getImageName());

RequestDispatcher dispatcher = request.getRequestDispatcher( "../main/index.jsp?req=imageboardDeleteResult");
dispatcher.forward(request, response);
%>