Skip to content Skip to sidebar Skip to footer

How To Save Multiple Form Data Using One Submit Button

In my jsp page I have two forms.one form action goes to save_product servlet and other one is goes to save_images servlet. There is only one submit button. when click submit butt

Solution 1:

Your code is insufficient to identify the problem completely. I cannot spot the issue.

However, as per your html code I guess that both servlets are in the same package. In that case you may directly call the doPost() or doGet() methods of save_images as they both have protected access modifier.

There's no need to use the Requestdispatcher after all.

new save_images().doPost(req, resp);

Post a Comment for "How To Save Multiple Form Data Using One Submit Button"