%@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")); String subject = request.getParameter("subject"); String content = request.getParameter("content"); BoardDTO dto = new BoardDTO(); dto.setSeq(seq); dto.setSubject(subject); dto.setContent(content); BoardDAO dao = new BoardDAO(); int su = dao.modifyboard(dto); request.setAttribute("su", su); RequestDispatcher dispatcher = request.getRequestDispatcher("../main/index.jsp?req=boardModifyFormResult"); dispatcher.forward(request, response); %>"> <%@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")); String subject = request.getParameter("subject"); String content = request.getParameter("content"); BoardDTO dto = new BoardDTO(); dto.setSeq(seq); dto.setSubject(subject); dto.setContent(content); BoardDAO dao = new BoardDAO(); int su = dao.modifyboard(dto); request.setAttribute("su", su); RequestDispatcher dispatcher = request.getRequestDispatcher("../main/index.jsp?req=boardModifyFormResult"); dispatcher.forward(request, response); %>"> <%@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")); String subject = request.getParameter("subject"); String content = request.getParameter("content"); BoardDTO dto = new BoardDTO(); dto.setSeq(seq); dto.setSubject(subject); dto.setContent(content); BoardDAO dao = new BoardDAO(); int su = dao.modifyboard(dto); request.setAttribute("su", su); RequestDispatcher dispatcher = request.getRequestDispatcher("../main/index.jsp?req=boardModifyFormResult"); 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"));
String subject = request.getParameter("subject");
String content = request.getParameter("content");
BoardDTO dto = new BoardDTO();
dto.setSeq(seq);
dto.setSubject(subject);
dto.setContent(content);
BoardDAO dao = new BoardDAO();
int su = dao.modifyboard(dto);
request.setAttribute("su", su);
RequestDispatcher dispatcher = request.getRequestDispatcher("../main/index.jsp?req=boardModifyFormResult");
dispatcher.forward(request, response);
%>