url中参数传递
js中
var url = "jsp/ecgap/outregist/regist_with_ent.jsp";
var map = new L5.Map();
map.put("entId",entId);//企业ID
map.put("unitName",unitname);//单位名称
map.put("orgCode",orgCode);//组织结构代码
map.put("certNo",certNo);//证照编号
map.put("belongArea",belongarea);//所属区域名称
map.put("belongAreaId",belongareaid);//所属区域ID
alert(belongarea);
map.put("mailingAddress",mailingAddress);//通信地址
map.put("postalCode",postalCode);//邮编
map.put("linkMan",linkMan);//联系人
map.put("mobile",mobile); //手机号码
L5.forward(url,"",map);
传递参数
jsp中接受参数
<%
//企业信息,null赋值为空字符串
String entId = (String)request.getParameter("entId");
String unitName = (String)request.getParameter("unitName");
String certNo = (String)request.getParameter("certNo");
String orgCode = (String)request.getParameter("orgCode");
String belongArea = (String)request.getParameter("belongArea");
//String belongAreaId = (String)request.getParameter("belongAreaId");
String linkMan = (String)request.getParameter("linkMan");
String mobile = (String)request.getParameter("mobile");
String postalCode = (String)request.getParameter("postalCode");
String mailingAddress = (String)request.getParameter("mailingAddress");
%>
<tr>
<td width="150" height="26" align="right"class="FieldLabel">所在区域:</td>
<td class="FieldInput">
<input type="text" id="belongarea" title="所在区域" field="belongarea" style="width: 200px"/>
<font color="red">*</font>
<button id="area" name="area" onclick="areaSelect()" style="width:30">...</button>
</td>
<td class="FieldInput"><input type="hidden" id="belongareaid" field="belongareaid"></td>
</tr>
但是在页面显示时
所在区域文本域中,也会显示所在区域id(belongareaid=0199238)的,多余参数信息,
求解。。。。!!!!