A
Andrea
Hi all,
I've a jsp-form which inquiry a database with a sql-query, and obtain a
recordset placed in a type-Vector variable; all working fine when I expose
this result in a html-page.
Now I need to expose same result in a Excel worksheet, so now my jsp contain
this code string:
response.setContentType("application/vnd.ms-excel");
response.setHeader("Content-disposition",
"attachment;filename=report_wiz.xls");
All working fine until (I suppose) Vector extracted is "light", but if it's
"heavy" in its dimension then I have an error page instead my xls sheet with
data inside.
I can expand my java-container with this parameter:
-Xms512m -Xmx512m
but could be not sufficient!
So, there is a way to intercept Vector-dimension? If yes, I can check this
before pass it to Excel-page, and if it's too big I can throw an alert like
"too much fields or too much rows extracted" to my users, instead a bad
error-page.
Thanks in advance
JFM
I've a jsp-form which inquiry a database with a sql-query, and obtain a
recordset placed in a type-Vector variable; all working fine when I expose
this result in a html-page.
Now I need to expose same result in a Excel worksheet, so now my jsp contain
this code string:
response.setContentType("application/vnd.ms-excel");
response.setHeader("Content-disposition",
"attachment;filename=report_wiz.xls");
All working fine until (I suppose) Vector extracted is "light", but if it's
"heavy" in its dimension then I have an error page instead my xls sheet with
data inside.
I can expand my java-container with this parameter:
-Xms512m -Xmx512m
but could be not sufficient!
So, there is a way to intercept Vector-dimension? If yes, I can check this
before pass it to Excel-page, and if it's too big I can throw an alert like
"too much fields or too much rows extracted" to my users, instead a bad
error-page.
Thanks in advance
JFM