%@page import="board.dto.BoardDTO"%> <%@ 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")); BoardDAO dao = new BoardDAO(); dao.updatehit(seq); BoardDTO dto = dao.boardView(seq); request.setAttribute("memberid", session.getAttribute("memberId")); request.setAttribute("pg", pg); request.setAttribute("id", dto.getId()); request.setAttribute("subject", dto.getSubject()); request.setAttribute("seq", dto.getSeq()); request.setAttribute("name", dto.getName()); request.setAttribute("hit", dto.getHit()); request.setAttribute("content", dto.getContent()); RequestDispatcher dispatcher = request.getRequestDispatcher("../main/index.jsp?req=boardViewResult"); dispatcher.forward(request, response); %>"> <%@page import="board.dto.BoardDTO"%> <%@ 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")); BoardDAO dao = new BoardDAO(); dao.updatehit(seq); BoardDTO dto = dao.boardView(seq); request.setAttribute("memberid", session.getAttribute("memberId")); request.setAttribute("pg", pg); request.setAttribute("id", dto.getId()); request.setAttribute("subject", dto.getSubject()); request.setAttribute("seq", dto.getSeq()); request.setAttribute("name", dto.getName()); request.setAttribute("hit", dto.getHit()); request.setAttribute("content", dto.getContent()); RequestDispatcher dispatcher = request.getRequestDispatcher("../main/index.jsp?req=boardViewResult"); dispatcher.forward(request, response); %>"> <%@page import="board.dto.BoardDTO"%> <%@ 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")); BoardDAO dao = new BoardDAO(); dao.updatehit(seq); BoardDTO dto = dao.boardView(seq); request.setAttribute("memberid", session.getAttribute("memberId")); request.setAttribute("pg", pg); request.setAttribute("id", dto.getId()); request.setAttribute("subject", dto.getSubject()); request.setAttribute("seq", dto.getSeq()); request.setAttribute("name", dto.getName()); request.setAttribute("hit", dto.getHit()); request.setAttribute("content", dto.getContent()); RequestDispatcher dispatcher = request.getRequestDispatcher("../main/index.jsp?req=boardViewResult"); 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"%>
<%
int seq = Integer.parseInt(request.getParameter("seq"));
int pg = Integer.parseInt(request.getParameter("pg"));
BoardDAO dao = new BoardDAO();
dao.updatehit(seq);
BoardDTO dto = dao.boardView(seq);
request.setAttribute("memberid", session.getAttribute("memberId"));
request.setAttribute("pg", pg);
request.setAttribute("id", dto.getId());
request.setAttribute("subject", dto.getSubject());
request.setAttribute("seq", dto.getSeq());
request.setAttribute("name", dto.getName());
request.setAttribute("hit", dto.getHit());
request.setAttribute("content", dto.getContent());
RequestDispatcher dispatcher = request.getRequestDispatcher("../main/index.jsp?req=boardViewResult");
dispatcher.forward(request, response);
%>