%@page import="board.dto.BoardDTO"%> <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <% request.setCharacterEncoding("utf-8"); String id = (String) session.getAttribute("memberId"); String name = (String) session.getAttribute("memberName"); String subject = request.getParameter("subject"); String content = request.getParameter("content"); BoardDTO dto = new BoardDTO(); dto.setName(name); dto.setId(id); dto.setSubject(subject); dto.setContent(content); BoardDAO dao = new BoardDAO(); int su = dao.write(dto); request.setAttribute("su", su); RequestDispatcher dispatcher = request.getRequestDispatcher("../main/index.jsp?req=boardWriteResult"); 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"); String id = (String) session.getAttribute("memberId"); String name = (String) session.getAttribute("memberName"); String subject = request.getParameter("subject"); String content = request.getParameter("content"); BoardDTO dto = new BoardDTO(); dto.setName(name); dto.setId(id); dto.setSubject(subject); dto.setContent(content); BoardDAO dao = new BoardDAO(); int su = dao.write(dto); request.setAttribute("su", su); RequestDispatcher dispatcher = request.getRequestDispatcher("../main/index.jsp?req=boardWriteResult"); 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"); String id = (String) session.getAttribute("memberId"); String name = (String) session.getAttribute("memberName"); String subject = request.getParameter("subject"); String content = request.getParameter("content"); BoardDTO dto = new BoardDTO(); dto.setName(name); dto.setId(id); dto.setSubject(subject); dto.setContent(content); BoardDAO dao = new BoardDAO(); int su = dao.write(dto); request.setAttribute("su", su); RequestDispatcher dispatcher = request.getRequestDispatcher("../main/index.jsp?req=boardWriteResult"); 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");
String id = (String) session.getAttribute("memberId");
String name = (String) session.getAttribute("memberName");
String subject = request.getParameter("subject");
String content = request.getParameter("content");
BoardDTO dto = new BoardDTO();
dto.setName(name);
dto.setId(id);
dto.setSubject(subject);
dto.setContent(content);
BoardDAO dao = new BoardDAO();
int su = dao.write(dto);
request.setAttribute("su", su);
RequestDispatcher dispatcher = request.getRequestDispatcher("../main/index.jsp?req=boardWriteResult");
dispatcher.forward(request, response);
%>