Web tier: servlets, JSP, Web frameworks: Sending file private file to web client for download

  1. if i have some files on my system that are not accessible via http and i have a servlet that obtains the filename from the url query then i want the servlet to open the file and send to the client with the correct file type and correct file name what objects should i be using and what properties should i be sending , some sample code would be nice example file is NewsLetter.pdf not bother about the servlet code handing the url just sending the pdf's data to the client with the correct name and file type

    TIA Stephen
  2. no matter got something working now