Hi asish,

This worked fine but now there a different problem , can u help me out.

See actually i have a href on a servlet and when the user clicks on it.
Another servlet is invoked which uses the values passed from session
variables from the previous ones to populate the excel sheet.
Now what i am doing is that i am passing the name with which the file shouls
be saved through a hidden field.

 filename = req.getParameter("filename");
 res.setHeader("Content-disposition", "inline;filename="+filename);

Now what happens is that the first time i do that it works fine
But after that again when i click on the ref
the some random filename is associated with the exce;l sheet.
Values are properly transferred but only file name is randomly generated.
But then again if i close the browser then it works


regards
Akshay



-----Original Message-----
From: Koshy Asish [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 18, 2000 12:58 PM
To: [EMAIL PROTECTED]
Subject: Re: Invoking excek through servlet


 This is the line which is supposed to let you specify a name for the excel
file.

  response.setHeader("Content-disposition",
"inline;filename=\"defaultFileName.csv\"");


Best Wishes
Asish

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to