
Can I have two or more actions in the same form?

Hi friends, No. A form must have exactly one action.

you can perform more than one action using java script. you have to write function and give different name for every action and on submit button you have to call that.
example
function pickDestination()
{
var a = "/loginpage/" + document.pressed;
document.getElementById("myform").action = a;
return true;
}
</script>
</head>
<body>
<form id="myform" action="#" onsubmit="return pickDestination();">
<td><input type="submit" name="WriteComment.jsp" value="WriteComment" onclick="document.pressed=this.name"/></td>
<td><input type="submit" name="ViewComments.jsp" value="ViewComments" onclick="document.pressed=this.name"/></td>
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.