Hello Ranchers ,
I have a page which has a Table which has details like name , password , address , telephone number etc...
Now this is displayed from the database nicely as i want to. Now i have a button saying EXPORT to .txt , Whatever data it shows on the
Jsp i.e name,, password , address , telephone number etc on click of that button should popup an option to the user giving him / her an option to save the data as .txt file. I have tried response.setContentType(text/plain) and setting the header to .txt button , the file which is opening is outputting the source of the html page then the output which i am desiring i.e name , username etc.
Can someone please show me the light on how this can be achieved. Previously it was application/vnd.ms-excel and it used to save in excel , but now the users need it into a .txt rather then .xls.
Any help is much appreciated.
Thanks in advance.
Yogendra N Joshi