You can have two (or more) submit buttons, however there can only be one target (there is an exception, which I will explain below). That being said, only the button that was clicked will be sent with the form data, so if you name it, you can check for its existence and call the relevant servlet.
HTML5 defines the formaction
attribute on submit buttons, which allow you to submit to a different target depending on which button is clicked. However, it is a new feature that is not supported in all browsers, which can cause problems if people are using an older version.
Ideally, you should have the form's action
attribute be a script that decides what to do with the button that was clicked, and then add formaction
attributes to the submit buttons that direct the form straight to the relevant file.