2016-06-15 38 views
0

JSP代碼是如下蒲公英數據表AJAX網址無法正常運作

<datatables:table id="studentMeetingtbl" url="getStudentMeetingList"  serverSide="true" processing="true" 
row="studentMeeting" rowIdBase="id" rowIdPrefix="studentMeeting_" 
displayLength="10" lengthMenu="10,15,25,50,100" jqueryUI="true" 
filterable="true" sortable="true" 
autoWidth="true" pageable="true" 
paginationType="full_numbers" 
stateSave="true" > 
<datatables:column title="Id" property="id" filterable="false" sortable="false" searchable="false" visible="false" /> 
<datatables:column title="Actions" renderFunction="actions" filterable="false" sortable="false" searchable="false" display="HTML" /> 
<datatables:column title="Id" property="id" /> 
<datatables:column title="Group Name" property="group.groupName" /> 
<datatables:column title="Project Name" property="group.projectName" /> 
<datatables:column title="Meeting Date" property="meetingDate" renderFunction="ParseDateColumn"/> 
<datatables:column title="Next Review/Meeting Date" property="nextReviewDate" renderFunction="ParseDateColumn"/> 
<datatables:column title="Remarks" property="remakrs" /> 
</datatables:table> 

輸出在瀏覽器

Output

堆棧跟蹤 trace

正如我們可以看到它是不從任何指定的url="getStudentMeetingList"獲取任何東西。

請指出解決方法。這是因爲tomcat 8或7與datatables不兼容?

回答

0

添加

<mvc:resources mapping="/dandelion/**" location="/dandelion/" /> 
在調度

它解決了流水線的問題。

+0

*什麼*流水線問題?這個答案與這個問題有什麼關係?不要只複製和粘貼答案。 –