You can override one of the page render methods (I think onactivate is one of 
those, but check the Tap5 website) and return false !!!! to tell Tap to skip 
the other steps of page rendering.

thanos <[EMAIL PROTECTED]> wrote: 
thank you.

I tried that but I get a mix of xml and html erro String (insteαd of clean
xml document) as a response. Seems that it looks for a template (I dont have
one cause I didnt need it with textStreamResponse)

Inside onActivate I obtain a PrintWriter from the injected Response, using
"application/xml; charset=UTF-8"
as content type. I print a small test xml string in printwriter and then I
flush the printwriter.

I return null in onActivate().

Did I do something wrong? 





Vashon-Ez wrote:
> 
> If you're just returning an RSS feed you probably don't want any page
> wrapping, etc.  In that case you can:
> 
> @Inject
> private Response _response;
> 
> You can then do things like setting headers and even write directly to the
> container-provided OutputStream - bypassing the whole TextStreamResponse
> -- just have your method flsuh() the output stream and return null.  This
> should also give slightly better performance.
> 
> HTH,
> 
> EE
> 
> thanos  wrote: 
> Hi all,
> 
> I am trying to return an rss feed using TextStreamResponse("text/xml",
> myfeed);
> 
> The problem is the that I can't make TextStreamResponse to show UTF-8
> (greek
> in my case) characters.
> I tried to set the content type in the response of RequestGlobals and also
> added a Utf8Filter with no luck
> 
> The same feed is displayed fine when I requested through a simple servlet. 
> I can see the characters in the returned string, and if I save the page
> source as an UTF-8 file I can displayed it correctly.
> 
> However, I can't make my browser or my GUI to display the xml if I
> directly
> request it using TextStreamResponse.
> 
> Dont know if it's related with this post:
> 
> http://www.nabble.com/T5-confused-about-Services-and-XmlHttpResponse-tf4160459.html#a11839004
> 
> Any advice plz?
> 
> Thanks
> Thanos
> 
> -- 
> View this message in context:
> http://www.nabble.com/TextStreamResponse-and-XML-and-UTF-8-tf4799847.html#a13732229
> Sent from the Tapestry - User mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/TextStreamResponse-and-XML-and-UTF-8-tf4799847.html#a13736449
Sent from the Tapestry - User mailing list archive at Nabble.com.


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


Reply via email to