Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

can we set sheet name for csv files (which opens in excel ).

843841Sep 21 2007 — edited Sep 24 2007
Hi

I am using this

response.setHeader("Content-Disposition", "attachment; filename="Soprna.csv");

But it sets an invalid name for the excell sheet when we open that excel the excell sheet name it sets is

.csv]Soprna(1)

The square closing bracket ] is causing some issue for the users.
Could anyone tell me how to prevent this invalid name.

Thanks in advance.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 22 2007
Added on Sep 21 2007
11 comments
483 views