velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Felix Satyaputra <>
Subject Re: Keep vectors value in context
Date Wed, 30 Aug 2006 10:04:38 GMT
Hi Carlo,

Is this servlet extended from VelocityServlet in
velocity tools project?

This servlet puts request, session, & servlet context
(I think) inside velocity context for every request.

Your servlet (if it's custom build) can do the same
thing - put request & session in velocity context.
Then store the vector in session.

Assuming session is stored under the key 'session' in
velocity context, to use from velocity,

#set ($myVector =

A little work around, I guess...



--- Carlo Torniai <> wrote:

> Hi there.
> I'm using a servlet to build some vectors that are
> used by a velocity 
> template.
> I call the same servlet with different parameters
> and I would like to 
> keep the value of vectors stored in the context
> according to some 
> parameters value.
> But i found that every time i call the servlet the
> vectors has to be 
> populated and added to the context.
> The question is: how can I add vectors to the
> context so that they can 
> be persistent (i.e. no need to populate them and to
> add them to the 
> context every time the servlet is called) during a
> user session?
> Thanks
> Carlo
> To unsubscribe, e-mail:
> For additional commands, e-mail:

All new Yahoo! Mail "The new Interface is stunning in its simplicity and ease of use." - PC

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message