Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/389.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java HTML输出呈现不正确,你知道为什么吗?_Java_Html_Spring_Jsp_Datatable - Fatal编程技术网

Java HTML输出呈现不正确,你知道为什么吗?

Java HTML输出呈现不正确,你知道为什么吗?,java,html,spring,jsp,datatable,Java,Html,Spring,Jsp,Datatable,我正在使用Spring2.5.6、hibernate和jsp 我已经开始提高数据表的质量 我已经将一些jsp文件从display标记更改为jQueryDataTable。但是,有一页疯了。虽然其他页面都是一样的,但是这个页面出现了一个该死的问题。。。 请看这里: 代码如下: <%@ page language="java" contentType="text/html; charset=UTF-8" %> <%@include file="/common/taglibs.jsp

我正在使用Spring2.5.6、hibernate和jsp

我已经开始提高数据表的质量

我已经将一些jsp文件从display标记更改为jQueryDataTable。但是,有一页疯了。虽然其他页面都是一样的,但是这个页面出现了一个该死的问题。。。 请看这里:

代码如下:

<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@include file="/common/taglibs.jsp"%>
<%@include file ="/WEB-INF/pages/dataTableUtil.jsp"%>

<head>
<title><fmt:message key="workDemandsAssignedByGroupChiefList.title"/></title>
<content tag="heading"><fmt:message key="workDemandsAssignedByGroupChiefList.heading"/></content>
<meta name="menu" content="WorkDemandsAssignedByGroupChiefList"/>
<style>
    /*    .margins
        {
            margin-left: 8px;
            margin-top: 8px;
            margin-right:  8px;
            margin-bottom: 8px;
        }*/
    .textFontSyle
    {
        color: #ac2925;

    }
</style>

</head>

<c:out value="${buttons}" escapeXml="false"/>
<strong><fmt:message key="workDemandsAssignedByGroupChiefList.heading"/></strong>



<table id="example" style="font-size: 110%" class="table table-striped table-bordered" cellspacing="0" width="100%">
    <thead>
        <tr>
            <th>Talep No</th>
            <!--<th>Talep Durumu</th>-->
            <!--            <th>Talep Eden Kullanıcı</th>-->
            <!--<th>Talep Türü</th>-->
            <!--<th>Özet Açıklama</th>-->
            <!--            <td></td>-->
        </tr>
    </thead>

    <tfoot>
        <tr>
            <th>Talep No</th>
            <!--<th>Talep Durumu</th>-->
            <!--            <th>Talep Eden Kullanıcı</th>-->
            <!--<th>Talep Türü</th>-->
            <!--<th>Özet Açıklama</th>-->
            <!--            <td></td>-->
        </tr>
    </tfoot>

    <tbody>
        <c:forEach var="item" items="${workDemandList}">

            <tr>
                <td> 
                    <c:out value="${item.id}" escapeXml="true" />
                </td>


            </tr>
        </c:forEach>
    </tbody>
</table>

它是关于浏览器编码的。一个过滤器试图压缩你的数据。您可以将其搜索为gzip编码。您应该管理浏览器编码筛选器。

WorkedMandList是相应控制器返回的列表。是否定义以提高质量?您现在正在包含xml,显然我怀疑这会阻碍您的页面…通过说“提高质量”,我的意思是,用显示标记库填充一个表,它的动作很慢。用户无法搜索记录。因此,我决定删除显示标记,并通过jquery datatable填充表。我包括了Xml的哪一部分?尽管你可以很容易地用显示标签实现搜索,顺便说一句,你可能想看看更新了很多的。