Hi,
I am having a problem in exporting a data from jsp to excel.
I am getting the values from a servlet and populating it to a JSP.
And form there i export them to Excel.
The functionality works fine. But the problem is with the exported data.
I am having values with leading zeros. for example:
Patron Code
------------------
000234523
032381934
003842924
05793438
etc.,
i am sending these data as string to Excel.
But these data are not getting as it is in Excel.
The leading zeros are eliminated and the data in excel looks as follows:
Patron Code
------------------
234523
2381934
3842924
5793438
I tried adding '. But the quotes( ' ) is also getting added in the excel.
when i added '. the data in excel looks as follows:
Patron Code
------------------
'000234523'
'032381934'
'003842924'
' 05793438'
Can anyone suggest me a solution for this?
Thanks in advance...
Sridhar
I am having a problem in exporting a data from jsp to excel.
I am getting the values from a servlet and populating it to a JSP.
And form there i export them to Excel.
The functionality works fine. But the problem is with the exported data.
I am having values with leading zeros. for example:
Patron Code
------------------
000234523
032381934
003842924
05793438
etc.,
i am sending these data as string to Excel.
But these data are not getting as it is in Excel.
The leading zeros are eliminated and the data in excel looks as follows:
Patron Code
------------------
234523
2381934
3842924
5793438
I tried adding '. But the quotes( ' ) is also getting added in the excel.
when i added '. the data in excel looks as follows:
Patron Code
------------------
'000234523'
'032381934'
'003842924'
' 05793438'
Can anyone suggest me a solution for this?
Thanks in advance...
Sridhar
Comment