我要分配对象StudentDetailsVo列表项。
我是一直得到这个错误。
$("#searchAtten").click(function(){
$("#tablerows").empty();
var sectionId=$("#selSection :selected").attr("id");
var studid=$("#studentid").val();
var datee = ${resultVO.monthEndDate}
var reqD = ${resultVO.reqdEndDate}
//I need to assign object here
var namem =${resultVO.studentList}
alert("namem"+namem);
var betweentDate= reqD-datee;
alert("betweentDate = "+betweentDate);
for(var i=1;i<=datee;i++){
alert(i);
$("#tableRows tr").append('<th width="129" scope="col" style="text-align: center;">'+i+'</th>');
}
if(sectionId == undefined)
{
sectionId = "null";
}
if(studid == "")
{
studid = "null";
}
fetch_atten(sectionId,studid);
});
});
我正在从VO文件这个值:
<% if (session.getAttribute("resultVO") != null){
AttendanceResultVO resultVO= (AttendanceResultVO)session.getAttribute("resultVO");
}
%>
**>我的火错误的错误是:
SyntaxError: missing ] after element list [Break On This Error] var namem =[com.sfmfm.vo.StudentDetailsVO@487c5f] myschool.jsp (line 53, col 43)**