You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by "Nikhil G. Daddikar" <ng...@celoxis.com> on 2002/04/28 13:56:49 UTC

Per Request Initialization

I am new to Turbine and perhaps my question is trivial:

All my screens and actions require a context (not to be 
confused with template context) which is a per request 
thing. It carries DBConnection etc. I need a place to 
create this context and make it available to everything. 

Where should I put this code since lot of things are
automatic in Turbine?

Thanks much.

-- 
Nikhil G. Daddikar
Celoxis Technologies
ngd@celoxis.com 


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Per Request Initialization

Posted by Leandro Rodrigo Saad Cruz <le...@ibnetwork.com.br>.
On Mon, 2002-04-29 at 13:34, Nikhil G. Daddikar wrote:
> 2.1
> 
> You can tell me about 2.2 too. Since we'll be moving soon.
> 

Turbine executes 2 actions on every request ( see Turbine.java )
an access controler and a session validator ACTION, you can change that
in your TR.conf to accomplish you per request needs, or , you can
implement a tool with request scope, but remember, a tool should be used
only in your templates !


> 
> -n.
> 
> ----- Original Message ----- 
> From: "Leandro Rodrigo Saad Cruz" <le...@ibnetwork.com.br>
> To: "Turbine Users List" <tu...@jakarta.apache.org>
> Sent: Monday, April 29, 2002 7:33 PM
> Subject: Re: Per Request Initialization
> 
> 
> : Which versions of Turbine are you using ??
> : 
> : On Sun, 2002-04-28 at 08:56, Nikhil G. Daddikar wrote:
> : > I am new to Turbine and perhaps my question is trivial:
> : > 
> : > All my screens and actions require a context (not to be 
> : > confused with template context) which is a per request 
> : > thing. It carries DBConnection etc. I need a place to 
> : > create this context and make it available to everything. 
> : > 
> : > Where should I put this code since lot of things are
> : > automatic in Turbine?
> : > 
> : > Thanks much.
> : > 
> : > -- 
> : > Nikhil G. Daddikar
> : > Celoxis Technologies
> : > ngd@celoxis.com 
> : > 
> : > 
> : > --
> : > To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> : > For additional commands, e-mail: <ma...@jakarta.apache.org>
> : -- 
> : Leandro Rodrigo Saad Cruz
> : IT - Inter Business Tecnologia e Servicos (IB)
> : http://www.ibnetwork.com.br
> : 
> : 
> : --
> : To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> : For additional commands, e-mail: <ma...@jakarta.apache.org>
> 
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
-- 
Leandro Rodrigo Saad Cruz
IT - Inter Business Tecnologia e Servicos (IB)
http://www.ibnetwork.com.br


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Per Request Initialization

Posted by "Nikhil G. Daddikar" <ng...@celoxis.com>.
2.1

You can tell me about 2.2 too. Since we'll be moving soon.


-n.

----- Original Message ----- 
From: "Leandro Rodrigo Saad Cruz" <le...@ibnetwork.com.br>
To: "Turbine Users List" <tu...@jakarta.apache.org>
Sent: Monday, April 29, 2002 7:33 PM
Subject: Re: Per Request Initialization


: Which versions of Turbine are you using ??
: 
: On Sun, 2002-04-28 at 08:56, Nikhil G. Daddikar wrote:
: > I am new to Turbine and perhaps my question is trivial:
: > 
: > All my screens and actions require a context (not to be 
: > confused with template context) which is a per request 
: > thing. It carries DBConnection etc. I need a place to 
: > create this context and make it available to everything. 
: > 
: > Where should I put this code since lot of things are
: > automatic in Turbine?
: > 
: > Thanks much.
: > 
: > -- 
: > Nikhil G. Daddikar
: > Celoxis Technologies
: > ngd@celoxis.com 
: > 
: > 
: > --
: > To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
: > For additional commands, e-mail: <ma...@jakarta.apache.org>
: -- 
: Leandro Rodrigo Saad Cruz
: IT - Inter Business Tecnologia e Servicos (IB)
: http://www.ibnetwork.com.br
: 
: 
: --
: To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
: For additional commands, e-mail: <ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Per Request Initialization

Posted by Leandro Rodrigo Saad Cruz <le...@ibnetwork.com.br>.
Which versions of Turbine are you using ??

On Sun, 2002-04-28 at 08:56, Nikhil G. Daddikar wrote:
> I am new to Turbine and perhaps my question is trivial:
> 
> All my screens and actions require a context (not to be 
> confused with template context) which is a per request 
> thing. It carries DBConnection etc. I need a place to 
> create this context and make it available to everything. 
> 
> Where should I put this code since lot of things are
> automatic in Turbine?
> 
> Thanks much.
> 
> -- 
> Nikhil G. Daddikar
> Celoxis Technologies
> ngd@celoxis.com 
> 
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
-- 
Leandro Rodrigo Saad Cruz
IT - Inter Business Tecnologia e Servicos (IB)
http://www.ibnetwork.com.br


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>