For 0.8.6 tag library, you will have to change the source code.
I added new properties "export.csv.filename", "export.excel.filename".
Modify doEndTag() to add...

fileName = prop.getProperty(
"export.csv.filename");

res.setHeader("Content-Disposition", "attachment;filename=" + fileName);

Make sure to initialize the property values in your jsp call.

HTH,

--ajay



"Mehta, Jasmin" <[EMAIL PROTECTED]> wrote:
Hi,

I am using version 0.8.6 of display-tag library. Right now when I click on link 'CSV' and try to save it, its taking the default saving file name as myreport.jsp (whatever the JSP file name where the display-tag is being used).

How can I change this default file name that is coming upon saving the file to the new extension .csv?

Pl help me, this is very urgent.

Thanks
Jasmin


-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
_______________________________________________
displaytag-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-user


Ajay S. Koranne, ceo
SUSWATI TECHNOLOGIES INC.
www.suswati.net


Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!

Reply via email to