----- Original Message -----
From: Fedor Karpelevitch <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 20, 2000 4:08 PM
Subject: Re: Cover url in response.sendRedirect()
> 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();
}
bye
Paolo
___________________________________________________________________________
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