多个action对应一个form 的写法



	<td align=right colspan="7" bgcolor="#FFFFFF"><input
				type="submit" name="submit" value="批量离线"
				onclick="javascript:document.getElementById('form').action='c/offLineAction.action'"></input>


			<input type="submit" name="submit" value="批量在线"
				onclick="javascript:document.getElementById('form').action='c/onLineAction.action'"></input>


			<input type="submit" name="sumbit" value="批量删除"
				onclick="javascript:document.getElementById('form').action='c/deleteAction.action'"></input>

			</td>
<s:form theme="simple" id="form" action="" method="post">
</s:form >

猜你喜欢

转载自zhangyulong.iteye.com/blog/1030047