On 3/8/02 8:35 PM, "Jeff Schnitzer" <[EMAIL PROTECTED]> wrote:
> The result is that nothing appears to be found in the context. Neither > values that were set from a previous template with #set($title = "foo") > nor values that exist in the request attribute collection are found. > The output just has the literals $title and $wrapped in it. > > According to my debugging code, I *am* successfully obtaining the same > ChainedContext from the request collection. It just doesn't seem to > contain any of the stuff I expect it to. > > What I'm doing is executing the first velocity template with > RequestDispatcher.include() to the VelocityViewServlet (using a > HttpServletResponseWrapper that simply buffers the output), then > executing the second velocity template using > RequestDispatcher.forward(). The buffered output of the first template > is stored in the request attribute collection as a String with the key > "wrapped". This is all within the same http request. > > So this *should* work? Yes - I'll dive in to this tomorrow. Was just too wacky of a week to get to it... -- Geir Magnusson Jr. [EMAIL PROTECTED] System and Software Consulting "Whoever would overthrow the liberty of a nation must begin by subduing the freeness of speech." - Benjamin Franklin -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
