Write your own file upload components in the Java environment
The upload file is often used, the file upload principle in the B / S environment is actually like an accessory, and the HTTP data is composed of file data, and you only get the data stream to remove its iconic data. The rest is your data file, and complete it uploaded by writing it.
Below we are distributed:
1. Upload the static page of the file, we must confirm why Method = "post" encType = "multipart / form-data" should not say it.
<% @ Page ContentType = "Text / HTML; Charset = GBK"%>
browsefile title> head>
test2 h1>