Multiple method calling using single servlet [duplicate]
This question already has an answer here: How do I call a specific Java method on click/submit event of specific button in JSP? 4 answers I am new to JavaEE and have a query regarding a servlet that has multiple methods. I want to know how I can call a specific method on a servlet, when I click " Submit " button in JSP.? Someone have suggested to use HTML hidden fields but I have no idea on how to implement them in Jsp. You can just give the submit button a specific name. <input type="submit" name="action1" value="Invoke action 1" /> <input type="submit" name="action2" value="Invoke action 2"