Can i have two action servlets in an html form? <form action="LoginServlet" method="post">
Username: <input type="text" name="username">
Password: <input type="password" name="password">
<input type="submit" value="Login">
</form>

I need to retrieve the 'username' parameter in 'ChangePasswordServlet' as well.
Please help me with the format. I have tried searching for it but did not find any solution.

Add a second button for changing the password:
<input type="submit" value="Change Password" formaction="ChangePasswordServlet">