<jsp:setProperty name =“ po” property =“ *” />无法设置某些表单值

问题描述

当我提交表单时,它将采用除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 

编辑1: 下面是根据脚本生成的两个选择标签

enter image description here

在上面的图片中,您看到突出显示的名称属性,这些值应设置为该bean,但在firefox浏览器中未设置。

请帮助,提前谢谢!...

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

依赖报错 idea导入项目后依赖报错,解决方案:https://blog....
错误1:代码生成器依赖和mybatis依赖冲突 启动项目时报错如下...
错误1:gradle项目控制台输出为乱码 # 解决方案:https://bl...
错误还原:在查询的过程中,传入的workType为0时,该条件不起...
报错如下,gcc版本太低 ^ server.c:5346:31: 错误:‘struct...