Hi,
The UploadContentServlet uses the PUT method to stream content directly into the repositories content store. I'm not sure that's exactly what you are after.
You want to get content selected on a web page uploaded to the web server and then into the repository. Right?
If so then have a look a the UploadFileServlet. This the what the Alfresco web client uses to upload files from the browser. It may not be exactly what you are looking for, but might give you some clues.
Cheers,
Roy