日期:2014-05-16  浏览次数:20424 次

js传中文值到后台null解决

页面jsp

<td><a href="javascript:void(0)" onclick="OpenModalWindow('<c:out value="${webapp}"/>/getOperateInfoByObj.action?operateAudit.operate_object=<s:property value="#iList.operate_object"/>&subject='+encodeURIComponent('<s:property value="#iList.operate_subject"/> ' ),800,500,true)">查看详情</a>& lt;/td>

?

编译过后

<td><a href="javascript:void(0)" onclick="OpenModalWindow('http://localhost:8089/udl/getOperateInfoByObj.action?operateAudit. operate_object=JACK&subject='+encodeURIComponent('变更逻辑校验规则' ),800,500,true)">查看详情</a></td>

?

?

后台调用

?

String objName = operateAudit.getOperate_object();
??? ??? ??? if(EditTypeConstants.OPERATE_SUBJECT_ACC.equalsIgnoreCase(subject )){

}else if(……)……