Hi,
    I'm using a frame to display my web site. A left panel and a right data
frame display files (for user to download - use a servlet's
ServletOutputStream). But after file download finished, it seems that the
left panel can not control data in the right one, ie. click in a link in the
left panel, data in the right panel can not loaded. I wonder if st happens
after the servlet output stream closed. I also sendRedirect to the right
panel after download (in a download servlet) but nothing changes.
    Tks for reading my mail
    Eric.
PS: This is my download code:
      response.setContentType("application/x-msproject");
      response.setHeader("Content-Disposition", "attachment;filename=\"" +
FileName + "\"");
      response.setContentLength(Filesize);
      ServletOutputStream  xxx_out = response.getOutputStream();
      InputStream xxx_in = new BufferedInputStream(new FileInputStream(F));
      int val;
      byte[] temp_data = new byte[BLOCK_SIZE];
      do
       {
        val = xxx_in.read(temp_data);
        xxx_out.write(temp_data, 0, val);
        xxx_out.flush();
       } while (val == BLOCK_SIZE);
    xxx_out.close();
---------------------------------------------------------------
Nguyen Van Hoang
R&D Engineer
Arawana Project
MIS Team
SSL Viet Nam Ltd.

___________________________________________________________________________
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

Reply via email to