"Kevin A. Burton" wrote:
>
> So looking at the differences between the Jakarta JSDK 2.2 source and
> JSDK 2.0, makes it a hard decision the impl of WebMacro, Cocoon, JSP
> (general Servlet Embeding).
>
> The problem is that with JSDK 2.2 you can call:
>
> RequestDispatcher.include()
>
> and you will get a requested servlet's output in your own servlet.
Well, here's the thing. you can do this, but still can't modify that
output. So you still can't do the equivalent of servlet chaining, which
is what it seems that you are getting at. Besides, for Cocoon in
particular, this really goes against the whole model used. We are going
to have to really think things through as to how to handle this sort of
thing. That's why I am taking lots of time to add Cocoon support - I
could easily make a producer version of Turbine, but I'm not sure that
splintering development for every "version" of Turbine is the right
idea.
>
> 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...
>
> 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.
-Brett
>
> --
> 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]
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]