问题描述
当我提交表单时,它将采用除firefox中的某些字段以外的所有表单值,但相同的代码在InternetExplorer中可以正常工作。
index.jsp
<body>
<jsp:useBean id="po" scope="request" class="Forms.POInfoForm" />
<form name="frmEntry" method="post" accept-charset="utf-8" action="mediator.jsp" onSubmit = "return confirmSubmit();">
<table border="3" bordercolor="#000000" id="tableName2" width="80%">
<%
if (po.getBldgId() != null) {
for (int j=0; j < po.getBldgId().length; j++) {
%>
<input type="hidden" value="" name="bldgitemId">
<tr>
<td width="33%">
<font color="#000000"> Building: </font>
<div id="buildingInfo<%=j%>"/>
<script language="JavaScript">
createBuildingList(<%=j%>,buildingInfo<%=j%>,<%=po.getBldgId(j) %>);
</script>
<td width="33%">
<font color="#000000"> Sub Account: </font>
<div id="subAccountInfo<%=j%>"/>
<script language="JavaScript">
createSubAccountList(<%=j%>,subAccountInfo<%=j%>,<%=po.getBldgId(j) %>,<%=po.getSubAccountId(j) %>);
</script>
</td>
</tr>
</table>
在上面的页面(index.jsp)中,两列由脚本填充。然后我们将请求提交给mediator.jsp,下面是medaitor.jsp,其中我们将所有属性设置为bean。之后,我们转发到服务类。
注意:在InternetExplorer中,请求有效负载包含所有字段,但是在firefox中,仅缺少上面两个字段。
注意:在Firefox浏览器中,当我检查时可以看到字段名称以及与IE相同的所有内容。
注意:我在这里删除了两个页面中所有不必要的代码
mediator.jsp
<html>
<head>
<title>
Mediator
</title>
</head>
<jsp:useBean id="po" scope="request" class="Forms.POInfoForm" />
<body bgcolor="#ffffff">
<h1>
Mediator JSP
</h1>
<jsp:setProperty name="po" property="*"/>
//some actions
在上面的图片中,您看到突出显示的名称属性,这些值应设置为该bean,但在firefox浏览器中未设置。
请帮助,提前谢谢!...
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)