velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From toto litoto <>
Subject Re: Scope of context ?
Date Thu, 15 Jul 2004 14:36:39 GMT

I understand that to get the advantage of session / request / 
application scope for my object shared between servlet & vm, I need to 
use different objects than the orignal ones that I've coded (simple 
values object). I mean I should  implemente ViewTool interface and 
define properties inside xml file. Is it the only solution ? or may I 
use my simple Value Object and define somewhere that they must be carry 
on the session instead of the request ?

Regards and thanks a lot,


Claude Brisson wrote:

>You should use the VelocityViewServlet, from the Tools subproject. The VelocityServlet
is deprecated.
>The toolbox mechanism provided by the VelocityViewServlet allows 3 different scopes :
>http request, http session and application.
>----- Original Message ----- 
>From: "toto litoto" <>
>To: <>
>Sent: Thursday, July 15, 2004 12:10 PM
>Subject: Scope of context ?
>>I'd like to know the scope of the context in a VelocityServlet. Here it 
>>seems that the scope is the one from HttpRequest. Is it true ?
>>I'd really like to have the context as a Session scope. How is it possible ?
>>To unsubscribe, e-mail:
>>For additional commands, e-mail:
>To unsubscribe, e-mail:
>For additional commands, e-mail:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message