当前位置:网站首页>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
边栏推荐
- Matchmaker's words
- Using jetpack libraries in applications
- [JUC] concurrent keyword volatile
- Numerical learning iota, accumulate
- Es5 new method
- 1223. Dice simulation range DP
- The difference between SFTP and FTP
- Same origin strategy and cross domain
- ABAP 代码中读取会计科目的字段状态(隐藏、可选、必输)
- Article 75: writing skills of academic papers
猜你喜欢

Interview focus - TCP protocol of transport layer

Unexpected dubug tricks

LeetCode 0135. 分发糖果

红娘的话
![[learning notes] solid works operation record](/img/f7/0535b473755643ce32996f00fa5554.png)
[learning notes] solid works operation record

什么是奇偶校验?如何用C语言实现?

Part 74: overview of machine learning optimization methods and superparameter settings

Call nailing API and report an error: the signature sent by the robot is expired; Solution: please keep the signature generation time and sending time within timestampms

开放API生态系统面临的十个威胁

What is inode? It will help you understand inode and what help inode provides when creating and deleting files.
随机推荐
Swap, move, forward, exchange of utility component learning
From which dimensions can we judge the quality of code? How to have the ability to write high-quality code?
Docker installation redis-5.0.12 (remote access)
initializer_ List tool library learning
Taobao flexible.js file realizes flexible layout
Typescript TS basic knowledge and so on
Vscode format JSON file
[intelligence question] interview intelligence question
1223. 掷骰子模拟 范围DP
[JUC] concurrent keyword volatile
[nodejs] nodejs create a simple server
行为型模式之迭代器模式
Key and difficult points of C language pointer
Reduce method of array
下一代终端安全管理的关键特征与应用趋势
Find the cause of program dead cycle through debugging
Call nailing API and report an error: the signature sent by the robot is expired; Solution: please keep the signature generation time and sending time within timestampms
utility实用组件学习之swap,move,forward,exchange
String functions and memory operation functions
Seventy second: pedestrian detection