File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
jsp and text file
Joined: Nov 28, 2012
Sep 24, 2013 15:14:50
I have a project using jstl. how can I query data from my sql server and fetch into text file and user can download that text file.
Author and ninkuma
Joined: Jan 10, 2002
Sep 24, 2013 15:19:42
That would have nothing to do with JSTL or
. 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.)
Asking smart questions
Books by Bear
I agree. Here's the link:
subject: jsp and text file
Save a String to a Text File,
jdbc text drivers
how can i resultset data to text file in a table format
can i use an xml file for internationalized text instead of Application.properties
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014