Try this:
<a href=".../MyServlet?action=function1">Function1</a>
<a href=".../MyServlet?action=function2">Function2</a>
<a href=".../MyServlet?action=function3">Function3</a>
and at your servlet 'MyServlet.java' try this:
public class MyServlet extends HttpServlet(){
public void doGet(HttpServletRequest request,HttpServletResponse response)
throws ServletExcetption,IOException{
response.setContentType("text/html");
PrintWriter out=response.getWriter();
String function=request.getParameter("action"); //this is that parameter we passed within the link
if(function.equals("function1")){
//code for function 1
}else if(function.equals("function2")){
//code for function 2
}else if(function.equals("function3")){
//code for funtction 3
}
}
}