B
brownjenkn
I see it's been posted before but haven't seen a good solution for this
one:
I've got a "Results.jsp" that outputs some query results from a DB2 DB.
I actually have a custom tag in the .jsp that does the actual query.
I output everything with a PrintWriter object and set the response
content-type to application/vnd.ms-excel. Some of these values may
look like "01010" or "01234" but they're not integers. I treat them as
String(s) in the code. When the output gets sent to excel, the leading
0 always gets dropped off so I have "1010" or "1234".
Anybody have some advice on how to fix this?
Your help is much appreciated.
TIA,
Marc
one:
I've got a "Results.jsp" that outputs some query results from a DB2 DB.
I actually have a custom tag in the .jsp that does the actual query.
I output everything with a PrintWriter object and set the response
content-type to application/vnd.ms-excel. Some of these values may
look like "01010" or "01234" but they're not integers. I treat them as
String(s) in the code. When the output gets sent to excel, the leading
0 always gets dropped off so I have "1010" or "1234".
Anybody have some advice on how to fix this?
Your help is much appreciated.
TIA,
Marc