WebAppプロジェクトを作成

Servletの編集

クラスのメソッドを全て消去し、以下を追加。

@Override
protected void service(HttpServletRequest request, HttpServletResponse response) 
throws ServletException, IOException {
    ServletContext sc = getServletContext();
    RequestDispatcher rd = sc.getRequestDispatcher("/WEB-INF/jsp/Sample.jsp");
    rd.forward(request, response);
}
最終更新:2014年07月12日 22:30