你在form里包含了一个hidden控件,这个控件的名字是method。所以你肯定改不了method呀,因为每次你得到的都是hidden这个控件。
去掉这个hidden控件或者将这个hidden控件改个名字就好了。<form method="POST" action="showOthersInfo.do" name="frm"> 
<input type="hidden" name="senderId" value="${sessionScope.user.id }"/> 
<input type="hidden" name="receiverId" value="${otherUser.id}"/> 
<label align="left">发送纸条给 <span style="color:red;">${otherUser.nickName} </span> </label> <br/> 
<textarea name="content" id="content" rows="4" cols="30"> </textarea> 
<div class="clear"> </div> 
</form>
<script>
alert(document.forms['frm'].method)
</script>