%@page import="imageboard.dao.ImageboardDAO"%> <%@ 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); String imageId= dto.getImageId(); String imageName = dto.getImageName(); int imagePrice = dto.getImagePrice(); int imageQty = dto.getImageQty(); String imageContent = dto.getImageContent(); String imageFile = dto.getImageFile(); String logtime = dto.getLogtime(); request.setAttribute("seq", seq); request.setAttribute("pg", pg); request.setAttribute("imageId", imageId); request.setAttribute("imageName", imageName); request.setAttribute("imagePrice", imagePrice); request.setAttribute("imageQty", imageQty); request.setAttribute("imageContent", imageContent); request.setAttribute("imageFile", imageFile); "> <%@page import="imageboard.dao.ImageboardDAO"%> <%@ 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); String imageId= dto.getImageId(); String imageName = dto.getImageName(); int imagePrice = dto.getImagePrice(); int imageQty = dto.getImageQty(); String imageContent = dto.getImageContent(); String imageFile = dto.getImageFile(); String logtime = dto.getLogtime(); request.setAttribute("seq", seq); request.setAttribute("pg", pg); request.setAttribute("imageId", imageId); request.setAttribute("imageName", imageName); request.setAttribute("imagePrice", imagePrice); request.setAttribute("imageQty", imageQty); request.setAttribute("imageContent", imageContent); request.setAttribute("imageFile", imageFile); "> <%@page import="imageboard.dao.ImageboardDAO"%> <%@ 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); String imageId= dto.getImageId(); String imageName = dto.getImageName(); int imagePrice = dto.getImagePrice(); int imageQty = dto.getImageQty(); String imageContent = dto.getImageContent(); String imageFile = dto.getImageFile(); String logtime = dto.getLogtime(); request.setAttribute("seq", seq); request.setAttribute("pg", pg); request.setAttribute("imageId", imageId); request.setAttribute("imageName", imageName); request.setAttribute("imagePrice", imagePrice); request.setAttribute("imageQty", imageQty); request.setAttribute("imageContent", imageContent); request.setAttribute("imageFile", imageFile); ">
<%@page import="imageboard.dto.ImageboardDTO"%>
<%@page import="imageboard.dao.ImageboardDAO"%>
<%@ 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);
String imageId= dto.getImageId();
String imageName = dto.getImageName();
int imagePrice = dto.getImagePrice();
int imageQty = dto.getImageQty();
String imageContent = dto.getImageContent();
String imageFile = dto.getImageFile();
String logtime = dto.getLogtime();
request.setAttribute("seq", seq);
request.setAttribute("pg", pg);
request.setAttribute("imageId", imageId);
request.setAttribute("imageName", imageName);
request.setAttribute("imagePrice", imagePrice);
request.setAttribute("imageQty", imageQty);
request.setAttribute("imageContent", imageContent);
request.setAttribute("imageFile", imageFile);
request.setAttribute("logtime", logtime);
RequestDispatcher dispatcher = request.getRequestDispatcher("../main/index.jsp?req=imageboardViewResult");
dispatcher.forward(request, response);
%>