From: Sreemannarayana <sp...@os...> - 2003-05-05 15:20:59
|
I am working with simple Bar charts, JSP, Tomcat.=20 I am passing the data of type "Double[][]" from Jsp-page-1 jsp-page-2 through "Session". In jsp-page-2, I have written code for bar graph. So in jsp-page-2 I am taking the data (of type Double[][]) from session and putting in to an array of type "double[][]".=20 =20 // Double[][] m_tmpdata , this passed through session. double[][] m_data =3D new double[m_tmpdata.length][m_tmpdata[0].length]; for(int i=3D0; i<m_tmpdata.length; i++) { for(int j=3D0; j<m_tmpdata[0].length; j++) { m_data[i][j]=3Dm_tmpdata[i][j].doubleValue(); } } =20 Paint[] m_paints =3D TestDataGenerator.getRandomPaints(1) // since its simple bar charts. =20 The above code is not working. It=92s giving exception like:=20 "There is not an one to one mapping of "Paint" implementation to "data sets". =20 Why am I getting this problem.????? =20 If I write the code like as follows its working fine: =20 Double [][] m_data =3D {{m_tmpdata[0][0].doubleValue(), m_tmpdata[1][0].doubleValue()}}; =20 =20 Please Help me. =20 Thanks and regards. |