サーブレットでのdoGetおよびdoPost
サーブレットに情報を送信するHTMLページを開発しました。サーブレットでは、私はメソッドdoGet()とを使用していますdoPost(): public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { String id = req.getParameter("realname"); String password = req.getParameter("mypassword"); } public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { String id = req.getParameter("realname"); String password = req.getParameter("mypassword"); } サーブレットを呼び出すhtmlページのコードは次のとおりです。 <form action="identification" method="post" enctype="multipart/form-data"> User Name: <input type="text" name="realname"> Password: …