> > You can't do this and you shoul not be able to for security (user's
> > security) reasons. Please explain what is your purpose -
> there may be a
> > better solution for that.
> >
> > WBR, Fedor.
>
> My user can download file only by url like this
> http:\\......\servlet?id=501
> instead thi url
> http:\\......\dummy.txt
>
> The files of my user are HTML,PDF,DOC,XLS,TXT
>
> Thank you for your support
>
>
> p.s.
> what do yuo think about this solution:
>
> FileInputStream fileinputstream = new FileInputStream(s);
> int i;
> while((i = fileinputstream.read(abyte0)) != -1)
> outputstream.write(abyte0, 0, i);
> fileinputstream.close();
> }
This solution seems OK to me. Make sure not to forget to set content-type
properly for each file type. Is there anything about this solution you do
not like? Why do you need to hide the URL?
WBR, Fedor.
___________________________________________________________________________
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