All pastes #384329 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-03-07 00:18 UTC
rendered paste body
    	public void onSubmit() {
    		   WebResponse r = (WebResponse)getRequestCycle().getResponse();
    		   r.setContentType("text/csv");
    		   r.setHeader("Content-Disposition", "attachment; filename=\"export.csv\"");
    		   r.write("hello,world,why,wont,you,work");
    		   getRequestCycle().setResponsePage((WebPage)null);
    	}