read the content from database and store it into excel file save it as like "Summary balance sheet".
i am using the following code
response.setContentType("application/vnd.ms-excel; charset=UTF-8");
response.addHeader("content-disposition", "inline; filename=" + resultXLS);
it does not taken the entire string as file name
it takes only Summary as file name.
the file name should be sumary balance sheet.
is there any other way to set the file name in jsp
One thing I am confused on - if you want the user to save the file, why set the content-disposition to "inline" (display in the browser)? Wouldn't "attachment" be the correct value if the intent is for the user to save the file?
OCPJP
In preparing for battle I have always found that plans are useless, but planning is indispensable. -- Dwight D. Eisenhower
The harder I work, the luckier I get. -Sam Goldwyn So tiny. - this ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth