BoardListServlet.java
페이지 정보
본문
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@WebServlet("/boardList")
public class BoardListServlet extends HttpServlet {
private static final long serialVersionUID = 1L;
public BoardListServlet() {
super();
}
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
String page = request.getParameter("page");
response.setContentType("text/html;charset=utf-8");
PrintWriter out = response.getWriter();
out.println(page + "페이지 게신판 목록 출력");
}
}
- 이전글boardList.jsp 21.07.15
- 다음글● Form 태그 사용한 GET 방식 요청처리 ( Servlet ) 21.07.15
댓글목록
등록된 댓글이 없습니다.