[Java Servlet] The road of Senri is also one step to the first

What is Servlet?

Mechanism for realizing Web application in Java

What is a web application?

Take a membership site as an example

  1. Enter user information in the client (PC or smartphone) to log in
  2. The server receives the user information sent
  3. Check if the user and password match using a database etc.
  4. If it matches, display My Page, if it is incorrect, return to the login screen and display an error message.

An image like the one below servlet2.png The information sent to the server is called "request", and the information sent from the server is called "response". Also, the client screen is composed of a file called jsp instead of HTML (the contents are almost the same as HTML, and java code can also be written).

Why Jakarta Servlet

Personally, I think it's more important to create a web application by hand and feel the flow of processing, rather than suddenly doing frameworks such as Strtus and Spring.

Let's make a project

The introduction has become longer, but I will make it immediately Move the cursor to [Package Explorer] in Eclipse and right-click Click [New]-[Other] servlet1.png Click [web]-[Dynamic web project]

Let's make a server

There is also a method to prepare Tomcat and Apache separately, but this time it is implemented with Tomcat built in Eclipse Click [Window]-[Show View]-[Other] servlet3.png Select Server and click OK

Recommended Posts

[Java Servlet] The road of Senri is also one step to the first
[Java Servlet] The road of Senri is also the fifth step from the first step
[Java Servlet] The road of Senri is also the third step from the first step
[Java Servlet] The road of Senri is also the fourth step from the first step
[Java Servlet] Senri no Michi is one step to the second
The first step to using Xib instead of StoryBoard
Road to Java Engineer Part2 What kind of language is Java?
The road from JavaScript to Java
[Ruby] Hash # has_key? Is one step closer to the official deprecated?
The milliseconds to set in /lib/calendars.properties of Java jre is UTC
How to increment the value of Map in one line in Java
Introduction to java for the first time # 2
Java SE8 Silver ~ The Road to Pass ~
Output of the book "Introduction to Java"
From Java9, the constructor of the class corresponding to primitive types is deprecated.
[Promotion of Ruby comprehension (1)] When switching from Java to Ruby, first understand the difference.
The order of Java method modifiers is fixed
The story of learning Java in the first programming
[Java] Why do you bother to use the interface (Spring is also available)
The first year of working people summarized how to take the Java Bronze exam
[Java] Is it unnecessary to check "identity" in the implementation of the equals () method?
[Java] How to get the authority of the folder
Conditional branching of the result of SQL statement to search only one in Java
First touch of the Files class (or Java 8)
Java Welcome to the Swamp of 2D Arrays
Installing Java is not easy! Summary of precautions to finish perfectly in one time
[Java] How to get the URL of the transition source
How to write Scala from the perspective of Java
The comparison of enums is ==, and equals is good [Java]
[Java] How to get the maximum value of HashMap
Java: Use Stream to sort the contents of the collection
The story that .java is also built in Unity 2018
I want to find out which version of java the jar file I have is available
I tried to summarize the basics of kotlin and java
Get to the abbreviations from 5 examples of iterating Java lists
20190803_Java & k8s on Azure The story of going to the festival
Command to check the number and status of Java threads
[Java] To know the type information of type parameters at runtime
Java: The problem of which is faster, stream or loop
How to derive the last day of the month in Java
The story of pushing Java to Heroku using the BitBucket pipeline
Be sure to compare the result of Java compareTo with 0
Reintroduction to Java for Humanities 0: Understanding the Act of Programming
Static function to check if the RGB error of BufferdImage is within the specified ratio in Java
[Java] I felt as a java beginner. "Why is the first letter of the String type capitalized?" I faced the String type.
[Java beginner] Conversion from character string to numerical value-What is the parseInt method of the Integer class? ~
[Java] Beginner's understanding of Servlet-②
[Java] Beginner's understanding of Servlet-①
This is the first post.
Java is the 5th day
Input to the Java console
[Java] Various summaries attached to the heads of classes and members
Want to know what Ruby n is the power of 2? (Power judgment of 2)
docker (200) Misra Example Suite at docker The road to completion of compilation
Fix the file name of war to the one set in Maven
Read the first 4 bytes of the Java class file and output CAFEBABE
From fledgling Java (3 years) to Node.js (4 years). And the impression of returning to Java
I tried to summarize the methods of Java String and StringBuilder
How to check for the contents of a java fixed-length string
Is the version of Elasticsearch you are using compatible with Java 11?
Investigation method when the CPU of the server running java is heavy