Art, You don't happen to be an architect do you? David
From: Art Vandalay <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: Struts Users Mailing List <[EMAIL PROTECTED]> Subject: Re: Universally Accessable Object Date: Thu, 20 Feb 2003 10:40:41 -0800 (PST) I'm not sure what app server you are using, but some (including WebLogic) allow for "startup" classes. These are classes that will be instantiated when the server is started. You could identify your class as a startup class and then store it in the proper scope. Then call RequestUtils.lookup(...) to retrieve it whenever you need it. --- Larry Hytail <[EMAIL PROTECTED]> wrote: > > I have a table of information contained in a backend > database. The table is not very big and never will > be. I would like to create an object that holds the > values from this table. I would like this object to > instantiate when the struts webapp is started. Then > I would like to be able to access this object from > any Action object within my struts application. > Questions: > > 1) Where is the best place to put the instantiation > of this object? > > 2) How do I get a handle on the object from the > Action object? > > Larry Hytail > > > > --------------------------------- > Do you Yahoo!? > Yahoo! Tax Center - forms, calculators, tips, and more __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
_________________________________________________________________
The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]