That would have nothing to do with JSTL or
JSP. If you want to return a text file as a response, simply emit the text as the response and set the content-type to "text/plain".
If you want to force a download (rather than displaying in the browser), be sure to set the content-disposition such that the response is an attachment. (Do a search for exact syntax.)