Dandelion Datatables AJAX url is not working

走远了吗. 提交于 2019-12-06 15:04:20

问题


JSP Code is as below

<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 is

Stack trace in browser is

As we can see it is not fetching anything from specified url="getStudentMeetingList".

Please show way to resolve this issue. Is this because tomcat 8 or 7 is incompatible with datatables?


回答1:


Adding

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

in dispatcher it solved pipelining problem.



来源:https://stackoverflow.com/questions/37834638/dandelion-datatables-ajax-url-is-not-working

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!