form问题
同一个form中的数据我想提交到不同的action中去,怎么做?
我这样写“发送”按钮可以实现功能!“发送全部”按钮点击后可以找到相应的action中的方法,但是在那边显示接到的值是null!
<form name= "form " action= "/manage/message.do?method=send_message " method= "post ">
<table width= "80% " border= "0 " align= "center " class= "td ">
<tr>
<td width= "11% " align= "right " class= "td "> 收信人名称: </td>
<td width= "41% " class= "td "> <input name= "addresseeName " type= "text " value= " " size= "20 "/>
注意:必须填写用户的真实用户名 </td>
</tr>
<tr>
<td align= "right " class= "td "> 发布主题: </td>
<td class= "td "> <input name= "title " type= "text " value= " " size= "20 "/> </td>
</tr>
<tr>
<td align= "right " class= "td "> 发布内容: </td>
<td class= "td "> <textarea name= "content " cols= "40 " rows= "5 " class= "buttonmain "> </textarea> </td>
</tr>
<tr>
<td align= "right " class= "td "> 发布人: </td>
<td class= "td "> <input name= "senderName " type= "text " value= " <%=username%> " size= "20 " /> </td>
</tr>
<tr>
<td align= "right " class= "td "> <input type= "submit " name= "submit1 " value= "发送 " /> </td>
<td class= "td "> <input type= "reset " name= "reset " value= "重置 " />
<input type= "button " onclick= "window.location.href= '/manage/message.do?method=send_all ' " value= "发送全部 "> </td>
</tr>
</table>
</form>