JSP的记录集问题!!
int myArray[]=new int[30];
for(int i=0;i<30;i++)
{
myArray[i]=selectRs.getInt("testID");
selectRs.next();
out.println(myArray[i]);
}
selectRs.getInt("testID");这个有什么问题?
错误提示:Incompatible type for =. Can't convert java.lang.Object to int.
myArray[i]=selectRs.getObject("testID");