Re: Returning binary data through portlet

2005-01-18 Thread David Sean Taylor
Dan Moore wrote:
Hi Alan,
I can't imagine that you can actually do this, because once the portal
begins rendering text (which would happen before your portlet was
rendered), you can't change it to render binary data.
Any chance you can have a link to a servlet with a target of _blank
which pops up in a new window and sends the binary data?  (I outlined
how I did this in a slightly different circumstance here:
http://www.mooreds.com/weblog/archives/18.html)  Or, you could just
link to that JSP.
Dan
--- Alan Chiang [EMAIL PROTECTED] wrote:

Hi all,
 Wondering if anyone knows how to get a portlet to return binary
data, or get Jetspeed to return binary data.  I have a JSP that reads
files for download, coupled with the JSP portlet, but any data
returned seems to be intercepted and interpreted as text and is
dumped
to the portlet window.
Recommend using the portlet pipeline
--
David Sean Taylor
Bluesunrise Software
[EMAIL PROTECTED]
[office] +01 707 773-4646
[mobile] +01 707 529 9194
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Returning binary data through portlet

2005-01-15 Thread Dan Moore
Hi Alan,

I can't imagine that you can actually do this, because once the portal
begins rendering text (which would happen before your portlet was
rendered), you can't change it to render binary data.

Any chance you can have a link to a servlet with a target of _blank
which pops up in a new window and sends the binary data?  (I outlined
how I did this in a slightly different circumstance here:
http://www.mooreds.com/weblog/archives/18.html)  Or, you could just
link to that JSP.

Dan

--- Alan Chiang [EMAIL PROTECTED] wrote:

 Hi all,
   Wondering if anyone knows how to get a portlet to return binary
 data, or get Jetspeed to return binary data.  I have a JSP that reads
 files for download, coupled with the JSP portlet, but any data
 returned seems to be intercepted and interpreted as text and is
 dumped
 to the portlet window.
 
   All the response headers have been correctly set and this JSP works
 outside of the portlet;
 so either the response headers are being swallowed, or the data is
 being converted.  Any quick and dirty way to get files to download
 through portlets?
 
 Thanks
 -- 
 Calling Canadian beef unsafe is like calling your twin sister ugly
 ~ Mark Dopp
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Returning binary data through portlet

2005-01-14 Thread Alan Chiang
Hi all,
  Wondering if anyone knows how to get a portlet to return binary
data, or get Jetspeed to return binary data.  I have a JSP that reads
files for download, coupled with the JSP portlet, but any data
returned seems to be intercepted and interpreted as text and is dumped
to the portlet window.

  All the response headers have been correctly set and this JSP works
outside of the portlet;
so either the response headers are being swallowed, or the data is
being converted.  Any quick and dirty way to get files to download
through portlets?

Thanks
-- 
Calling Canadian beef unsafe is like calling your twin sister ugly
~ Mark Dopp

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]