HTTP-Servlets

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/36

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

37 Terms

1
New cards

HTTP Basics

GET and POST
Headers and Parameters
RESTful Operations

2
New cards

GET and POST

Core HTTP methods for data retrieval and submission

3
New cards

Headers and Parameters

Define content type, language, and other request/response details

4
New cards

RESTful Operations

Additional HTTP methods like PUT and DELETE for resource management

5
New cards

Servlet Lifecycle

Methods like init(), doGet(), doPost(), and destroy().

6
New cards

Handling Requests

HttpServletRequest and HttpServletResponse for processing client data

7
New cards

Annotations

Use @WebServlet for configuration without modifying web.xml

8
New cards

Form Handling

Retrieve form data from client submissions

9
New cards

Output Formats

Generate HTML or JSON responses for diverse front

10
New cards

HTTP

HyperTextTransferProtocol

11
New cards

HTTP is used for

Web browsers and servers communication

12
New cards

GET

sends query parameters in the URL

13
New cards

POST

sends query parameters in the "payload"

14
New cards

Both GET and POST send

headers. Browsers do not display headers.

15
New cards

REST APIs use

PUT and DELETE

16
New cards

PUT is used to

update the records on the server

17
New cards

DELETE is used to

remove records from the server

18
New cards

ALL operations use a

"Request / Response"

19
New cards

The normal form of HTTP Request contains

3 fields, followed by headers:
HTTPmethod, identifier, HTTPversion

20
New cards

HTTP_method is

GET, POST, PUT, etc., and describes what needs to be done

21
New cards

Identifier is

the URL of the resource

22
New cards

HTTP_version is

the HTTP Protocol version, such as HTTP/2.0.

23
New cards

HTTP Request "headers"

header name : header value

24
New cards

The normal form of HTTP Response contains

3 fields, followed by headers, followed by the resource requested:
HTTPversion, Numericcode, String_code

25
New cards

String_code is

the text version of the numeric_code, such as OK

26
New cards

Dynamic Web Content allows

different data to be shown on the same web page

27
New cards

Most dynamic content is based on

a server program running and generating the front

28
New cards

backend web languages

Java :Servlets, JSP (obsolete), JavaBeans, Spring Boot
.NET : C++, C#, VB
PHP
Ruby
Python
Server_side JavaScript : Node.js
CGI

29
New cards

There are three frontend web languages

HTML, CSS, JavaScript

30
New cards

computer>apache>MySQL

Client>Web/Application Server (Server)>Database

31
New cards

Servlets are

Java classes that inherit from the HttpServlet class, and can serve dynamic web content

32
New cards

Servlets get compiled and executed on

the server and generate client

33
New cards

Client_side code is

HTML, CSS, and JavaScript

34
New cards

data" is

XML or JSON (in Ajax methodology)

35
New cards

Servlets can be used to

process the data submitted from an HTML form through the HttpServletRequest variable in the doGet, doPost, or service method

36
New cards

a popular Java Servlet framework

Spring Boot

37
New cards

Spring Boot tries to

remove all configuration and allow a programmer to focus solely on writing Java code