1、jsp中代码
var userNo = $(‘#prisoner_id‘).val();
userNo = encodeURI(userNo);
allPrisonerGrid.datagrid(‘options‘).url = ‘mobilemanage!allPrisonerPage.action?test=‘ + userNo;
allPrisonerGrid.datagrid(‘reload‘);
2、action中代码
String userNo = "";
try {
userNo = URLDecoder.decode(request.getParameter("test"),"utf-8");
if(!"".equals(userNo)){
mobileManage.setUserNo(userNo);
}
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
}
时间: 2024-10-10 15:00:52