jquery:
var table = $('#myTable').DataTable();('#myTable tbody').on( 'click', 'tr', function ()
{ var currrowvalue=null;
//console.log( table.row( this ).data() );
currrowvalue = table.row(this).data();
$.post('sample.jsp',{arraydata:currrowvalue}) .done(function()
{
location.href='sample.jsp';
});
//window.open("pasofinoshowentryformtemplate229.jsp");
});
Jsp Page:
<%
str= request.getParameterValues("arraydata[]");
%>
<input type="text" value="<%=str[0]%>">
显示java.lang.NullPointerException org.apache.jsp.sample_jsp._jspService(sample_jsp.java:92)
帮帮我