|
|
Re: How to post array of objects
|
Posted: Oct 5, 2006 11:27 PM
|
|
In the code, while I am returing the migrationbean, it is throwing a null value. I am not sure whether the values are actually getting into the bean or not.I have given some logs in the getInfo function to trace, but no use.
public HrMigrationStatusDataBean[] getinfo(){// parasoft-suppress JAVADOC.PJDM beans.setElementList(migrationbean); HrMigrationStatusDataBean[] bean = beans.getElementList(); for (int k=0; k<2; k++){ log("The value of beans is" + bean); } String[][] values = null; values = new String[2][6]; for (int j=0; j<2; j++){ values[j][0] = bean[j].getSourceVersion(); log("value is as follows" + values[j][0]); values[j][1] = bean[j].getTargetVersion(); log("value is as follows" + values[j][1]); values[j][2] = bean[j].getPercentMigrated(); log("value is as follows" + values[j][2]); values[j][3] = bean[j].getMigrateStatus(); log("value is as follows" + values[j][3]); values[j][4] = bean[j].getDateCompleted(); log("value is as follows" + values[j][4]); } return migrationbean; }
|
|