File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Getting Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Getting "not a multipart request" even though the image is being saved." Watch "Getting "not a multipart request" even though the image is being saved." New topic
Author

Getting "not a multipart request" even though the image is being saved.

chaitanya karthikk
Ranch Hand

Joined: Sep 15, 2009
Posts: 800

Hi everybody, I am chaitanya, I have developed a small application to register users. The form sends a multi part request.

Here the server is able to catch the image and is saving the image in c:\vitsimages\

But after that it is saying the request is not a multipart request.

the code goes like this

new_faculty.jsp

servlet

please anyone tell me what is the mistake in it. I am trying to figure it out from morning. But all my tries failed

Thank you all in advance.


Love all, trust a few, do wrong to none.
chaitanya karthikk
Ranch Hand

Joined: Sep 15, 2009
Posts: 800

I am extremely sorry, I figured the problem out. I am sending request to the same servlet again. So I got that error.

response.sendRedirect("newFac"); //the problem lies here

response.sendRedirect("new_fac.jsp"); //it must be something like this
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Getting "not a multipart request" even though the image is being saved.
 
Similar Threads
jsp insert program not working
how to dynamically set values in check box
servlet mapping
Can not Populate the form on combo box change
iterate problem in struts2