<%@page import="board.dao.BoardDAO"%> <%@page import="board.dto.BoardDTO"%> <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <% request.setCharacterEncoding("utf-8"); int seq = Integer.parseInt(request.getParameter("seq")); int pg = Integer.parseInt(request.getParameter("pg")); BoardDAO dao = new BoardDAO(); BoardDTO dto = dao.boardView(seq); request.setAttribute("seq", seq); request.setAttribute("pg", pg); request.setAttribute("name", dto.getName()); request.setAttribute("hit", dto.getHit()); request.setAttribute("subject", dto.getSubject()); request.setAttribute("content", dto.getContent()); RequestDispatcher dispatcher = request.getRequestDispatcher("../main/index.jsp?req=boardModifyForm"); dispatcher.forward(request, response); %>"> <%@page import="board.dao.BoardDAO"%> <%@page import="board.dto.BoardDTO"%> <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <% request.setCharacterEncoding("utf-8"); int seq = Integer.parseInt(request.getParameter("seq")); int pg = Integer.parseInt(request.getParameter("pg")); BoardDAO dao = new BoardDAO(); BoardDTO dto = dao.boardView(seq); request.setAttribute("seq", seq); request.setAttribute("pg", pg); request.setAttribute("name", dto.getName()); request.setAttribute("hit", dto.getHit()); request.setAttribute("subject", dto.getSubject()); request.setAttribute("content", dto.getContent()); RequestDispatcher dispatcher = request.getRequestDispatcher("../main/index.jsp?req=boardModifyForm"); dispatcher.forward(request, response); %>"> <%@page import="board.dao.BoardDAO"%> <%@page import="board.dto.BoardDTO"%> <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <% request.setCharacterEncoding("utf-8"); int seq = Integer.parseInt(request.getParameter("seq")); int pg = Integer.parseInt(request.getParameter("pg")); BoardDAO dao = new BoardDAO(); BoardDTO dto = dao.boardView(seq); request.setAttribute("seq", seq); request.setAttribute("pg", pg); request.setAttribute("name", dto.getName()); request.setAttribute("hit", dto.getHit()); request.setAttribute("subject", dto.getSubject()); request.setAttribute("content", dto.getContent()); RequestDispatcher dispatcher = request.getRequestDispatcher("../main/index.jsp?req=boardModifyForm"); dispatcher.forward(request, response); %>">
<%@page import="java.net.URLEncoder"%>
<%@page import="board.dao.BoardDAO"%>
<%@page import="board.dto.BoardDTO"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
request.setCharacterEncoding("utf-8");
int seq = Integer.parseInt(request.getParameter("seq"));
int pg = Integer.parseInt(request.getParameter("pg"));

BoardDAO dao = new BoardDAO();
BoardDTO dto = dao.boardView(seq);

request.setAttribute("seq", seq);
request.setAttribute("pg", pg);
request.setAttribute("name", dto.getName());
request.setAttribute("hit", dto.getHit());
request.setAttribute("subject", dto.getSubject());
request.setAttribute("content", dto.getContent());

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