Statement: The material used in this column is written by the VIP students of the Kay Academy, who has the right to be anonymous and has the final right to interpret the article; The Edith Academy is designed to promote students to learn from each other on the basis of public notes.
Doget Access:
The servlet code, such as
The JSP page or HTML page code is as follows:
After the browser sends the content as follows:
Note: In the previous browser, there is an optimization function that you have visited the link he will give you to cache when you visit again when the browser will not go to the request, he will directly read the local cache so that you can not send text messages a better solution is to write a time parameter behind this link
Dopost Submit
The servlet code is still the same as the original, the Doget method is changed to the Dopost JSP code as follows in the browser to run the effect and the same
File Upload:
Multiple file uploads:
If you want to do a good job, hide the progress bar and wait for him to upload the file when it shows up in Java code to determine if the file's MD5 exist!
Code instance for Javaee--ajax