Hi all folks,
What you want to do, can be solved with a servlet.
You can invoke a servlet in a link, by passing parameters in the URL.
(http://mydomain/myservlet?param1=42397¶m2=inline, for example)
This servlet has just to build a stream on the response and write in this stream the octets table which represents the file to be
downloaded (with the special header, as Veerendra Jote has told you).
This has been explained in this list a few months ago. Search the archives ...
> Message du 27/11/03 à 12h26
> De : Mr. Cristian D. Romanescu <c.romanescu@(protected)>
> A : SERVLET-INTEREST@(protected)
> Copie à :
> Objet : Re: Download on click of a link
>
> IMHO I think that is not possible. In IE for example you could have a
> download manager which listens to links and when I press the link to a
> file (exe, zip etc) it starts download program.
> Maybe it will be possible by installing an signed ActiveX or such in IE
> (as for example macromedia flash does) but again in Mozilla you can't do
> that...
>
> c.
>
>
> Karthikeyan wrote:
>
> >Hi.,
> >
> >I hava a problem.
> >
> >I have a link in my page. On click of it, it is showing a dialog that asks
> >for Save As or Run. I need to avoid that and want the downloadable to
> >install directly on click of the link.
> >
> >Thanks.
> >
> >Karthik.S
> >
> >
> >
> >___________________________________________________________________________
> >To unsubscribe, send email to listserv@(protected)
> >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
> >
> >
> >
> >
>
> --
> ======================================
> Cristian Romanescu
>
> Tecnico Junior
> Finsiel Romania srl
>
> Mobile: +40745133096
> Web : http://www.geocities.com/ext007
>
> Fools ignore complexity; pragmatists suffer it; experts avoid it; geniuses remove it. ~A. Perlis
>
> ___________________________________________________________________________
> To unsubscribe, send email to listserv@(protected)
> 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
>
------------------------------------------
Faites un voeu et puis Voila ! www.voila.fr
___________________________________________________________________________
To unsubscribe, send email to listserv@(protected)
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