using a link to call servlet
i want to use a link to perform an action instead of using a button like this
<form action="LoginServlet" method="post">
<h5 align="center"><input type="submit" value="updateTeam"></h5></form> problem is my servlet direct the program by looking the value(updateTeam).
how can i use a link..please help me i tried many ways....i tried using java script
function update(){
document.forms[0].action="LoginServlet";
document.forms[0].submit();
}
</script>
<body >
<a href="javascript:update()" >view</a>
but this is throwing one error...