Implement file upload in JSP, a lot of available libraries, such as the famous JSPSMART SMARTupload, Struts is also available. I said COS, it is O'Reilly, O'Reilly book is very 8 wrong, this uploaded component is great, the most important thing is that it is Open Source.
1. Download the latest COS package (
Http://www.servlets.com/cos/index.html, join your ClassPath
2. Write a JSP that needs to upload files. For convenience, I use a simple HTM file. In this page, we will allow users to upload 3 files at a time.
/upload.htm///
[PRE]
"http://www.w3.org/tr/html4/loose.dtd">
No title document Title>
hEAD>
of the uploaded.