Dear friends i am having a two dimentional float array (flowratearray) in my Action Form.In
JSP i am having 2D array of text fields representing this property.
i am setting one 2d Array of values to this poperty by calling setter method in Action class execute method.But in my jsp page i am not getting those values, instead i am getting irrelavant values([F@139626c],...) in those text fields.
Here is my jsp code:
-----------------------
<logic:iterate id="row1" name="PumpCalibForm" property='flowarray' indexId="ctr1">
<tr>
<logic:iterate id="row2" name="PumpCalibForm" property='timearray' indexId="ctr2">
<td>
<html-el:text name="PumpCalibForm" property='flowratearray[${ctr1}][${ctr2}]'/>
</td>
</logic:iterate>
</tr>
</logic:iterate>
===============================
Action class execute() method:
=================================
float testarray[][]=new float[i][j];
for(int k=0;k<i;k++)
for(int l=0;l<j;l++){
testarray[k][l]=k+3.5f;
}
pcform.setFlowratearray(testarray);
===========================
My ActionForm code
============================
private float[][] flowratearray;
public float[][] getFlowratearray() {
return flowratearray;
}
public void setFlowratearray(float[][] flowratearray) {
this.flowratearray = flowratearray;
}
public float getFlowratearray(int i, int j) {
return flowratearray[i][j];
}
what else i have to provide. where is the problem.
I will be greatful to u....
thanks..
jakeer ahmed