"some reasons", eh?  that doesn't really help us help you.  how's
this...  do you need just any velocity context (very easy to do), a
functional ViewContext (a bit more difficult, but possible), or a
fully prepared ChainedContext created by the VelocityViewServlet for
that servlet request (not possible in VelocityStruts)?

On 1/20/06, Manish <[EMAIL PROTECTED]> wrote:
> Exactly that's what we're doing.
> But for some reasons I need a handle to the context, and I am wondering how 
> can
> I do that?
>
> - Manish
>
> ----- Original Message -----
> From: "Nathan Bubna" <[EMAIL PROTECTED]>
> To: "Velocity Users List" <velocity-user@jakarta.apache.org>
> Sent: Friday, January 20, 2006 10:50 PM
> Subject: Re: Accessing velocity context...
>
>
> no.  the velocity context is not created until after the action passes
> of handling of the request to the VelocityViewServlet.  so, the
> velocity context does not exist at the time the action is being
> executed.   if you need to put stuff in the context, put them in the
> request attributes; remember that the VelocityViewServlet uses a
> ChainedContext that transparently exposes request attributes to the
> template.
>
> On 1/20/06, Manish <[EMAIL PROTECTED]> wrote:
> > I am using velocity with struts, is there a way I can access velocity 
> > context
> > directly from within a struts action?
> >
> > - Manish
> >
> >
> >
> > ---------------------------------------------------------------------
> > 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]
>
>
>
>
> ---------------------------------------------------------------------
> 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]

Reply via email to