logo       

RE: contenttype text/plain: msg#00081

java.enhydra.general

Subject: RE: contenttype text/plain

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>
Google Custom Search

News | FAQ | advertise