I have a requirement in my application that the data displayed on the jsp should be downloaded as .xls and .csv file. As far as .xls is concerned i can do it by setting the content type. But i have no clue about how to download it to .csv file. any ideas ? -Kaustubh.