I've checked the archives and have come up a bit short on this question.
I have a jsp and I want to include a servlet using
<jsp:include page="/packagename.admin.DownloadCatalog" />
This servlet should handle downloading the file to the browser. Actually, the servlet also builds this file on the fly using out.println() or whatever. If I call the servlet just by itself, it works just fine. It seems that contenttype and the headers have already been set if I call from a jsp. The servlet just winds up writing to the page instead of to the output stream I want.
Any ideas on this? I want to write to the page AND write to an outputstream which the browser downloads as a file.
Jay Baker
