Hi Richard,
I completely agree with your point. I am sorry, I have not thought in
these lines. Actually the requirement was, out of some files, if client selects some
of files and press download, they should come to his hard drive so that he can cut a
cd with these files.
Thanks for updating me in such a important issue.
Smita
Richard Yee <[EMAIL PROTECTED]>:
> Smita,
> To answer your question, "Is there a way for a JSP to download multiple
> files with a single click to a hardcoded location on the client's
> machine?" No there isn't.
>
> As the previous responder mentioned, it would be a security
> breach. Imagine if you could download an autoexec.bat file and a
> program
> that contained a virus to the user's machine? The next time the user
> booted the machine, assuming it was a M$ OS, you could infect the
> machine.
> In the case where both of your machines are in a small intranet and you
> were able to change the security policy on your user's JREs, you could
> then
> open a huge security hole and allow an applet to write to the disk.
> The
> applet could make a connection to a servlet and download the files from
> there. DOING THIS WOULD BE VERY DANGEROUS AND ILL ADVISED.
>
> Perhaps you can share with us the reason for this requirement?
>
> Regards,
>
> Richard
>
> At 07:05 AM 9/7/01 +0600, you wrote:
> >Hi,
> > Thanks for your reply. but, if I give href to that document, it
> will
> > open that document, right? My requirement is a bit different. I want
> to
> > download multiple files on click of a button from server to client's
> > local disc. The directory where the files are to be copied is hard
> coded.
> > Is there any way to do this? if yes, how? Please reply
> >Thanks and best regards
> >Smita
> >
> >Quoting Sushanto Pandit <[EMAIL PROTECTED]>:
> >
> > > Smita,
> > >
> > > Without a dialog BOX.... thats a security breach...
> > >
> > > HREF that document/file you wish to download....
> > >
> > > Sush
> > >
> > >
> ===========================================================================
> > > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> > > JSP-INTEREST".
> > > For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST
> > > DIGEST".
> > > Some relevant FAQs on JSP/Servlets can be found at:
> > >
> > > http://java.sun.com/products/jsp/faq.html
> > > http://www.esperanto.org.nz/jsp/jspfaq.html
> > > http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> > > http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
> > >
> >
> >-------------------------------------------------
> >This mail sent through : http://mail.sify.com
> >
> >===========================================================================
> >To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> >JSP-INTEREST".
> >For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> >Some relevant FAQs on JSP/Servlets can be found at:
> >
> > http://java.sun.com/products/jsp/faq.html
> > http://www.esperanto.org.nz/jsp/jspfaq.html
> > http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> > http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
-------------------------------------------------
This mail sent through : http://mail.sify.com
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets