Java – processrequest method
•
Java
When is the processrequest method called?
It's hard for me why, why and how to invoke process requests? The reason for calling it and how the servlet container calls it
Solution
Servlets have two important ways to handle client requests:
1. Dopost: generally, the post method is used to process requests from forms
2. Doget: process the request from get method
Now, the processrequest method is any other method you can use in your code, and it does not bind (overwrite) anything
Calling it from the above method does not complicate the code, so the request is processed in it
Therefore, you can use processrequest to process your request when and only when it is called from one of the above methods
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码