当前位置:网站首页>Getting started with Servlet
Getting started with Servlet
2022-07-25 23:54:00 【JOJO, baby】
1、 What is? servlet
servlet It's a Java Program , Is to run the processed client request on the server and respond
servlet The core is javax.servlet.Servlet Interface , be-all servlet This interface must be implemented
Self defined servlet Mostly from genericServlet or HttpServlet Class to implement
2、servlet Life cycle of
Load and instantiate
servlet initialization
Client request processing
servlet The destruction
3.get、post The difference between
1.get Get data from the server ,post Is to send data to the server .
2.get The parameter data queue is added to the submission form ACTION Attribute refers to URL in , Value corresponds to each field in the form one by one , stay URL Can be seen in .post It's through HTTPpost Mechanism , Place the fields and their contents in the HTML HEADER Transfer to ACTION Attribute refers to URL Address . Users don't see the process .
3. about get The way , Server side Request.QueryString Get the value of the variable , about post The way , Server side Request.Form Get submitted data .
4.get Small amount of data transmitted , Not greater than 2KB.post Large amount of data transmitted , It is generally defaulted to unlimited . But in theory, ,IIS4 The maximum quantity is 80KB,IIS5 In Chinese, it means 100KB.( Here are other articles about get and post The size of the transmission data with each browser 、 Operating system and server restrictions )
5.get Very low security ,post High security .
4、JSP The four scopes of ( From small to large )
1.pageContext : Page scope
2.request : Request scope
3.Session: Conversation scope
4.application: Project scope
边栏推荐
- 【MUDUO】EventLoopThreadPool
- Firewall command simple operation
- Optimize the browsing experience of yandere/konachan site with user scripts
- S4/HANA MM & SD EDI基于NAST的集成配置(ORDERS, ORDRSP, DESADV, INVOIC)
- 下一代终端安全管理的关键特征与应用趋势
- Three board axe! Help you become an excellent software engineer
- Redis extended data type (jump table /bitmaps/hyperloglog/geospatial)
- Data intensive application system design - Application System Overview
- Topsis与熵权法
- [ManageEngine] servicedesk plus won the 2022 safety model engineering data safety award
猜你喜欢

Good news under the epidemic
![[learning notes] unreal 4 engine introduction (IV)](/img/30/4defa3cbd785d43adb405c71d16406.png)
[learning notes] unreal 4 engine introduction (IV)

Ratio of learning_ add,ratio_ subtract,ratio_ multiply,ratio_ Use of divide

获取马蜂窝酒店数据

Key and difficult points of C language pointer

图的遍历-DFS,BFS(代码详解)

死信队列 和消息TTL过期代码

Ten threats to open API ecosystem

Interview focus - TCP protocol of transport layer

Optimize the browsing experience of yandere/konachan site with user scripts
随机推荐
The difference between SFTP and FTP
Chapter 64: error lnk2019: unresolved external symbol cvround
【MUDUO】EventLoopThreadPool
Firewall command simple operation
Storage of data in memory
Good news under the epidemic
ABAP 代码中读取会计科目的字段状态(隐藏、可选、必输)
S4/HANA MM & SD EDI基于NAST的集成配置(ORDERS, ORDRSP, DESADV, INVOIC)
Shardingsphere data slicing
Taobao flexible.js file realizes flexible layout
Inheritance (the child constructor inherits the attributes in the parent constructor)
Anti shake and throttling
[Muduo] EventLoop event cycle
Leetcode 0135. distribute candy
The process of finding free screen recording software - I didn't expect win10 to come with this function
死信队列 和消息TTL过期代码
Data intensive application system design - Application System Overview
SAP Message No. VG202 IDoc E1EDK18 中付款条款已经转移:检查数据
Promise resolve callback hell, async await modifier
Get the data of Mafeng Hotel