response.setContentType( "application/x-msdownload" );
InputStream in = getClass().getResourceAsStream("a.txt");
IOUtils.copy(in, response.getOutputStream());
in.close();
InputStream in = getClass().getResourceAsStream("a.txt");
IOUtils.copy(in, response.getOutputStream());
in.close();