I want to send a String to user
Actually I don’t have any file for it. It is only a standard java string and I want user to download it rather than see it on browser.
Most of the example on internet are based on a static file which is not useful for my case.
austin,i think you need set the response header,following is the code:
where the getResponse() gets the httpServletResponse.