struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wes Wannemacher <w...@wantii.com>
Subject Re: Adding Global POJO in S2 Environment
Date Wed, 30 Apr 2008 00:51:30 GMT
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?  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
> Spring to create and inject your POJO wherever you need it.
> 
> jk
> 
> On Tue, Apr 29, 2008 at 7:55 PM, Frans Thamura <frans@meruvian.org> wrote:
> 
> > 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
> >
> 
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message