Well i'm sorry for not beein explanatory enough.
this is my get method for downloading my attachments
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
String filename=request.getParameter("filename");
File f=new File("C:/TEMP"+"/"+filename);
FileInputStream input=new FileInputStream(f);
BufferedInputStream in = null;
try{
in = new BufferedInputStream(input);
response.setContentType(CONTENT_TYPE);
response.setHeader("Content-Disposition"," inline; filename=" + filename);
ServletOutputStream out = response.getOutputStream();
byte[] buffer = new byte[4 * 1024];
int data;
while((data = in.read(buffer)) != -1){
out.write(buffer, 0, data); }
out.flush();}
catch(Exception e){
return; }
}
filename is a parameter sent from my
jsp page to the servlet via url rewriting. When i click on the link representing the file to be downloaded, DAP tells me "proxy cannot find requested file"
Also C:\TEMP is the folder that i upload my files to.