How do I upload a file to my servlet?
Oddly, this functionality isn’t built into any of Sun’s standard classes. See this jGuru article for a list of third-party solutions. I’m using MultipartRequest from com.oreilly.servlet to support uploading XSL templates. NOTE that with multipart upload forms, you can’t use request.getParameter to access any of the fields uploaded by the POST, so when you create your form tag, make sure to include a parameter in your action URL; e.g.