Aravind wrote:
> hi,
> actually, im not using server side java programs to download to browsers
> after creating the file, im just giving html <a href.... > tag for
> downloading
> so i have to make that file as nontext file while creation itself....
Hmmm.. I am not sure if I understand you well, but:
As far as I understand the HTTP protocol and web server's and
browser's behavior, the most important thing is the Content-type that
servers sends to browser. From this type browser decides if it knows the
type and knows what to do with content, or if it doesn't know and then
obviously shows the Save-as dialog.
MSIE extends this behavior by recognition of file extensions, but you
cannot rely on this.
If I understand your problem well, you create file on server and then
you insert into generated html link to this file - but when user clicks
on that link, file is sent to him/her direct by web server, not by your
Java application (servlet).
In such case the solution of your problem is in web-server
configuration in order to web-server will know that the file should be
sent with mime-type "application/xxx-some-strange-mime-type" (as I
proposed in my previous mail). So look into your web-server documentation.
Regards,
J.Ch.
--
Ing. Jozef Chocholacek Qbizm Technologies, Inc.
Chief Project Analyst ... the art of internet.
________________________________________________________________
Kralovopolska 139 tel: +420 5 4124 2414
601 12 Brno, CZ http://www.qbizm.com fax: +420 5 4121 2696
___________________________________________________________________________
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