Hello.
I cannot down load file collectry.
When I put this URL
http://localhost/servlet/DownLoad
on browser.
Download dialog will appear,and I can down load file "test.csv"
But the file I downloaded to my client has nothing contain.
(I'ts null.)
Off cource I make test.csv and I has some data.
I suppose I put a file that will be download at wrong directory.
If I put file to web root directory,
how shoud I write"attachment; filename=" ?
Best Regard
public void doPost(
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) {
fileName = "test.csv";
response.setContentType("text/comma-separated-values");
response.setHeader(
"Content-Disposition",
"attachment; filename=\"" + fileName + "\"");
}
___________________________________________________________________________
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