File with COS
Author: Chen Wanfei
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.
Download the latest COS package (http://www.servlets.com/cos/index.html), join your ClassPath. Write a JSP that needs to upload files. For convenience, I use a simple HTM file. In this page, we let users upload 3 files at a time. /upload.htm
"http://www.w3.org/tr/html4/loose.dtd">
No title document Title>
hEAD>
of the uploaded.