GET请求最大长度限制为255

原来:

<a href="rejectedaddrmsginfo.jsp?sender=<%=URLEncoder.encode(rec.getRejectedAddr())%>&senderType=<%=senderType%>&receiverType=1 target="_blank">Detail</a>

修改后:

<a href=""><font onclick="queryAddrLogDetail('<%=URLEncoder.encode(rec.getRejectedAddr())%>','<%=senderType%>');return false;">Detail</font></a>

 

 

 function queryAddrLogDetail(sender,senderType)
 {
  document.form2.sender.value = sender;
  document.form2.senderType.value = senderType;
  document.form2.submit();
 }

 

<form name="form2" action="rejectedaddrmsginfo.jsp" method="post" target="_blank">
                                <input type="hidden" name="sender" value="">
                                <input type="hidden" name="senderType" value="">
</form>

你可能感兴趣的:(jsp)