multipart « Upload « JSP-Servlet Q&A

1. file upload using multipart in jsp

how to upload files using multipart form in jsp. i have tried uploading and the file is getting uploaded but the other fields in the form like text/dropdown box,their value cannot ...

2. how to use multipart to upload file using XMLHttpRequest?

Here is what I am doing

var url_action="/temp/SaveConfig";
 var client; 
 var dataString;

 if (window.XMLHttpRequest){ // IE7+, Firefox, Chrome, Opera, Safari
     client=new XMLHttpRequest();
 } else {   ...

3. multipart upload servlet timing out?