2 Replies Latest reply on Aug 9, 2002 10:21 AM by Ron Jawanda

    Downloading a file from the webserver that was created in a

    Ron Jawanda Novice

      I have a servlet running in jetty that creates a temporary file using the File.createTempFile (see below)
      When it is complete the pdf file is created and I want to present a link to the user for them to download.
      I deploy the website with and ear file so I am not sure if the temp file method below creates the file under my website. ie: I need to put a link

      Any ideas?

      dir = (File) getServletContext().getAttribute("javax.servlet.context.tempdir") ;
      f = File.createTempFile(project,".pdf",dir) ;