Forums Register Login

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

+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
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 have a knack for fixing things like this ... um ... sorry ... here is a consilitory tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 3994 times.
Similar Threads
Can not Populate the form on combo box change
jsp insert program not working
how to dynamically set values in check box
servlet mapping
iterate problem in struts2
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 17:59:56.