Discussions

Web tier: servlets, JSP, Web frameworks: Urgent !!!! How to provide download option to the data generated

  1. Hi all,

    Thankyou in advance.
    I have two jsp's say 1.jsp and 2.jsp,

    An button is provided in 1.jsp it will invoke 2.jsp . In ordinary situation when 2.jsp is invoked all the data generated will be displayed in the browser. But i want that data to be saved as .csv in client side. So when the button is pressed in 1.jsp it must ask for save as to location........ for the data generated from 2.jsp. How to get this???

    Please reply as soon as posible it is very urgent.

    Thankyou,
    Praveen
  2. Won't it work directly if you set the MIME-type to a non-browser readable? If the browser can't display it - it will user helper applications (or download it).

    Hope this helps!


    Markus