SERVLETの最小構成
(1) ディレクトリ構成
$ tree test03 test03 └── WEB-INF └── classes ├── test03.class └── test03.java 2 directories, 2 files(2) SEVLEAT(JAVA)ファイル
$ cat test03/WEB-INF/classes/test03.java import java.io.*; import javax.servlet.*; import javax.servlet.annotation.*; import javax.servlet.http.*; @WebServlet(name="test03", urlPatterns={"/test03"}) public class test03 extends HttpServlet { @Override public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException,IOException { res.setContentType("text/html; charset=UTF-8"); PrintWriter out = res.getWriter(); out.println(""); out.println(""); out.println("こんにちわ"); out.println(""); out.println("