I have a html file with 4 buttons. The action for all 4 buttons is the same as shown below:
<form action="Welcome" method="post">
So that means either of the 4 buttons I click on, it will go to the Welcome servelet, which is currently empty. In the welcome servlet, I need to somehow redirect to other servlets based on what button is clicked. Could somebody please tell me how to do this please, below is my html code, thanks in advance! Much appreciated.
Options.html
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Options</title>
</head>
<body>
<form action="Welcome" method="post">
<h3>
Options
</h3>
<input type="submit" value="View Personal Information" name="vpi">
<br>
<br>
<input type="submit" value="View Expense Claims" name="vec">
<br>
<br>
<input type="submit" value="View Payslips" name="vps">
<br>
<br>
<input type="submit" value="Change Password" name="cp">
</form>
</body>
</html>