If you want to
download that text, then on 'Download' link action, perform following steps:
1. Create a temp file
2. Write all the string into that file.
3. By setting proper header, forward
If you want the user can
copy paste the generated text, then use:
<textarea cols="12" rows="3"><jsp:include page="GetTheText.do"/></textarea>
GetTheText is mapped to the action and opens the "out" stream and write the strings, like
PS: I never tried both the example before, so let me know Ranchers whether my appraoch is correct or not