Velocity allows context chaining, see:
http://jakarta.apache.org/velocity/docs/developer-guide.html#Context%20Chaining

The overlay context can be cleared or discarded on
discretion of the application.

In an early application of mine, I used a servlet with a
base context with constants and thread-safe tools,
capsuled it in a read-only context, and finally overlayed
it with a request context containing thread-unsafe tools,
and request dependent values (query string, date, link tool,
etc.)

Now I would use the VelocityViewServlet with the ToolboxManager
from the tools subproject to populate the contexts accordingly.

Cheers,
Christoph

Anagha wrote:
Hi,
I'm writing the utility class which has different methods for different
templates all of which share a common context.
At the start of each method I  want to ensure that context populated
previously by any method is flushed.
This is as good as flushing of all entries in the context.
I did not see any vel- API for this.
Any pointers?
Any help is welcome.
--
Thanks & Regards,
Anagha


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to