jeff wrote:
>
> Daniel Rall wrote:
> >
> > [EMAIL PROTECTED] writes:
> >
> > > @@ -454,9 +457,11 @@
> > >
> > > /*
> > > * put the request/response objects into the context
> > > + * wrap the HttpServletRequest to solve the introspection
> > > + * problems
> > > */
> > >
> > > - context.put( REQUEST, request );
> > > + context.put( REQUEST, new HttpServletRequestWrap( request ) );
> > > context.put( RESPONSE, response );
> >
> > Ahhh...would you mind elaborating? :)
>
> I can attest to this bug. The class used by Tomcat to implement
> HttpServletRequest can't be accessed directly in Velocity because it
> somehow resists introspection. However, I have had exactly the same
> experience with HttpServletResponse. Geir, is there some reason why
> you've wrapped request but not response?
I wanted to go to bed, and figured I would save writing another exciting
gazillion-method wrapper class for another day, so spread out the
enjoyment. :)
I am working on the response right now...
>
> I wonder if this is a bug in the JVM or if there is some other
> explanation.
I am not 100% sure, but I think it is because the class that implements
the interface is default or private (I don't remember - I looked when
this was first reported a while ago...)
geir
--
Geir Magnusson Jr. [EMAIL PROTECTED]
Developing for the web? See http://jakarta.apache.org/velocity/