If you must write
all the code that you use (do they expect you to write your own
servlet container as well?), you'll need to parse the multi-part request yourself.
I'd grab one of the 3rd party tools that you found mentioned and look at the multi-part parsing code to learn what it entails. In particular, I remeber that looking at the O'Reilly MultipartParser class was very instructive.