Re: Adding Global POJO in S2 Environment

2008-04-29 Thread Wes Wannemacher
On Wed, 2008-04-30 at 08:01 +0700, Frans Thamura wrote: > On Wed, Apr 30, 2008 at 7:51 AM, Wes Wannemacher <[EMAIL PROTECTED]> wrote: > > > Do you want one static copy of your POJO available everywhere, or do you > > need a unique copy of your POJO for each request or session? > > > > i want thi

Re: Adding Global POJO in S2 Environment

2008-04-29 Thread Frans Thamura
On Wed, Apr 30, 2008 at 7:51 AM, Wes Wannemacher <[EMAIL PROTECTED]> wrote: > Do you want one static copy of your POJO available everywhere, or do you > need a unique copy of your POJO for each request or session? > i want this pojo available in my context (only inside current .war). i have a g

Re: Adding Global POJO in S2 Environment

2008-04-29 Thread Wes Wannemacher
Do you want one static copy of your POJO available everywhere, or do you need a unique copy of your POJO for each request or session? -Wes On Tue, 2008-04-29 at 20:44 -0400, Jim Kiley wrote: > Is this something you want to have accessible from your view pages, or just > from your action classes?

Re: Adding Global POJO in S2 Environment

2008-04-29 Thread Frans Thamura
On Wed, Apr 30, 2008 at 7:44 AM, Jim Kiley <[EMAIL PROTECTED]> wrote: > Is this something you want to have accessible from your view pages, or > just > from your action classes? For the most part you can deal with this in the > same way you'd deal with any other singleton or singleton-oid. Use t

Re: Adding Global POJO in S2 Environment

2008-04-29 Thread Jim Kiley
Is this something you want to have accessible from your view pages, or just from your action classes? For the most part you can deal with this in the same way you'd deal with any other singleton or singleton-oid. Use the good old static singleton pattern per Josh Bloch et al, or (preferably) use

Adding Global POJO in S2 Environment

2008-04-29 Thread Frans Thamura
hi all i just get an idea to make one of my class a POJO will be recognized globally inside S2 environment so i get the values from this POJO, such as username, password all across application anyone can help, what is the best way to implement this? F