LoginSignup
0
0

More than 3 years have passed since last update.

【JSP/サーブレット】 サーブレットクラスを使ってブラウザに「Hello World」を表示させてみた!

Last updated at Posted at 2021-01-23

1,環境設定:pencil2:

Eclipse2020 Full Edition
Java11
Tomcat9

2,動的プロジェクト作成::blue_book:

3,サーブレットクラスの作成場所:card_box:

4、ディレクトリ構造とソースコード:notepad_spiral:

5、ブラウザをGoogle Chromeに設定:beginner:

6、サーバーの起動とブラウザ表示:tada:

サーバー起動(Tomcat)

ブラウザ表示(Google Chrome)

表示することができました!!

URLとリクエストメソッドにも注目すると、
 URL ⇨ localhot:8080/JSP_Servlet/HelloServlet
 Request Method : GET
となっています.

7、次のステップ:airplane:

次回は、JSPファイルからブラウザ表示をさせてみたいと思います!

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0