|
RE: contenttype text/plain: msg#00081java.enhydra.general
Hello, I use Presentation Objects (.po) files. Here is how I do it with a .po, for pdf files, you can change it for text/plain. public void run (HttpPresentationComms comms) throws java.lang.Exception { comms.response.setContentType("application/pdf"); comms.response.setContentLength(buf.length); comms.response.setHeader("content-disposition", "inline;filename=storageReport1.pdf"); OutputStream out = comms.response.getOutputStream(); out.write(buf, 0, buf.length); out.flush(); Hope this helps. Mike Warne -----Original Message----- From: Achim Weßling [mailto:achim.wessling@xxxxxx] Sent: Monday, October 21, 2002 7:44 AM To: enhydra@xxxxxxxxxxx Subject: Enhydra: contenttype text/plain Hallo, can somebody tell me, how I can send plain text in an enhydra-application? I didn't find something about this in the docu. Thanks! Achim Weßling Achim.WesslingQweb.de _______________________________________________ Enhydra mailing list Enhydra@xxxxxxxxxxx http://www.enhydra.org/mailman/listinfo.cgi/enhydra
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | PLEASE how to set the CLASSPATH, Camila Piñeiro |
|---|---|
| Next by Date: | RE: PLEASE how to set the CLASSPATH, Mike Warne |
| Previous by Thread: | contenttype text/plain, Achim Weßling |
| Next by Thread: | Re: RE: contenttype text/plain, Achim Weßling |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |