If you want to just return "stuff" and not HTML from a page/component, then you can create your own engine service, I would imagine. The engine service could have anything you want injected into it from within the HiveMind registry.
-----Original Message----- From: KEGan [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 17, 2006 1:31 PM To: Tapestry users Subject: [SPAM] Re: Using tapestry as a Servlet Patick, Could you please elaborate how you do that ? Does it has all the auto-property injection into the Servlet? Thanks. On 10/18/06, Patrick Moore <[EMAIL PROTECTED]> wrote: > > I just created my own servlet that just accessed the various hivemind > services directly. Much less to figure out. Took all of 10 minutes. > (well a little more but easier than trying to figure out how to > intercept tapestry. > > On 10/17/06, KEGan <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I am using Tapestry 4.0.2. Most of the time, I am using Tapestry to > generate > > dynamic HTML pages, so I have all the .html .page .java files for each > page. > > > > However, sometimes I want to just output some arbitrary text. Such as > XML, > > JSON data, or plain text. For XML data, I can probably treat it just > like > > another HTML page :) But for JSON (or other data), what is the elegant > way > > to intercept Tapestry so I could write out my own output ? As if we > using > > Servlet, getting a OutputStream object and write our own output. > > > > I read that this could be done in Tapestry 4.1. But since this version > is > > not in production release, I would like avoid it. Or should I not? > > > > Thanks. > > > > ~KEGan > > > > > > --------------------------------------------------------------------- > 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]