I know.... I know........
But at this stage I do not know much either...will have to wait till Monday to
know why "exactly" it is needed.
As of now I have only been asked a question, and I also said no to it -- but I
wanted to confirm on the list itself.
I need fully prepared ChainedContext created by the VelocityViewServlet for that
particular request, one of my objects stored in the context itself may need to
access the context (I know it sounds vague...but I can't help it either). The
way one can access ServletContext in servlets...
Any pointers??
TIA,
- Manish
----- Original Message -----
From: "Nathan Bubna" <[EMAIL PROTECTED]>
To: "Velocity Users List" <velocity-user@jakarta.apache.org>
Sent: Friday, January 20, 2006 11:23 PM
Subject: Re: Accessing velocity context...
"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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]