Brett McLaughlin wrote:
> > This would technically work but Screen.build() has to return a
> > ConcreteElement. Which basically means I need to actually get the
> > output of this servlet.
> >
> > So the way I am thinking of doing it is through emulating the servlet
> > engine.
>
> I'm not sure we want to do this - Turbine is an _application_ framework,
> and trying to add servlet level tasks makes me nervous... I think we may
> ahve to think long and hard about how we architect the "future" of
> Turbine. This is serious revision time, but we may need to do it. I'll
> come up with an idea and some code...
Right. I agree. The thing that will really make or break Turbine (as
far as Cocoon, JSP, etc) is the ability to redir to a servlet. For
Cocoon it probably isn't that bad since we have an open interface to
bypass the servlet.
> > Creating my own servlet context from the current servlet context,
> > calling init() assuming it hasn't been inited (but there might not be an
> > easy way to figure this out).
> >
> > Then I would have to provide my own HttpServletRequest that provide a
> > different getServletPath() and a different ServletOutputStream that I
> > can get as a String so I can return it as a ConcreteElement for return
> > in build().
>
> Right, this is really bad... a slippery slope.
>
> >
> > Thoughts?
> >
> > It is slightly a hack but would work well across JSDK 2.2 and JSDK 2.0
>
> -0 for now because I don't have a solution, -1 as soon as I have one.
So I totally agree. It is a big hack. I have to get this done by
Friday. The problem is the code won't be that hot to integrate into
Turbine. It might work for my situation but would be very prone to
breaking. Very nasty.
If anyone has a better "official" solution I would be interested in
hearing it.
--
Kevin A Burton
Senior Software Engineer
Kendara Inc
http://www.kendara.com
Mobile: 408-910-6145
Linux - You *will* be assimilated
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]