How to download the content dynamically generated in Servoy

Hi,
I have a solution to generate a file based on the information users provide. When the form shows up users can type in some information then click the “OK” button. The function fired by “OK” button will generate a text file. Now I need output the generated content to users’ browser then they can download it. I know I can do it by using jsp or servlet. But I don’t want to do it this way because I prefer to do this in servoy as a whole, if servoy can. I also don’t want to save the generated text file somewhere temporarily as it could create too many files on the server.

Does somebody know how to do this in Servoy?

Thanks,