Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I upload a file to my servlet?

file servlet upload
0
Posted

How do I upload a file to my servlet?

0

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.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123