![]() form - What is your name? Which file do you want to upload? - servlet - package cc.rvlet import java.util.* import java.io.* import rvlet.* import .* import. on submit I'm getting: Error: 405 Location: /evoucher/FileUpload HTTP method GET is not supported by this URL which confuses me because there is no GET method, only POST. My form and servlet are essentially copies of the O'Reilly example. MultipartRequest multi new MultipartRequestrequest j. A file to the server method must be post and enctype must be multipartform-data in html file. PrintWriter out response.getWriter() MultipartRequest mnew MultipartRequest(request,d. I don't know why I thought it wasn't working, but now I have a new problem. You can send different types of file data in a single HTTP request by using the multipart/form-data content type. Regardless of the example servlet is not included this is used with affordable fee structure of the enctype include the reason for the name that it is.
0 Comments
Leave a Reply. |