Yes I solved this using DirectPage.  My download link now points to the below
page.  Note the setpath(null)

public class DirectPage {

public void onGet() {

HttpServletRequest request = getContext().getRequest();
HttpServletResponse response = getContext().getResponse();      
response.setContentType("text/plain");
response.setHeader("Pragma", "public");
response.setHeader("Cache-Control", "max-age=0");
response.setHeader("Content-Disposition", "attachment; filename="+filename);    
        
ServletContext context = getContext().getServletContext();
PrintWriter writer = response.getWriter();
String line = "your string here";
writer.println(line);
writer.close();    
setPath(null);
} 
}

--
View this message in context: 
http://click.1134972.n2.nabble.com/File-Download-with-Click-tp7179077p7292167.html
Sent from the click-user mailing list archive at Nabble.com.

Reply via email to