struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Menke, John" <John.Me...@acs-inc.com>
Subject static variables in actions
Date Tue, 03 Feb 2004 14:35:52 GMT
if I have a collection of state names and I don't want to have to retrieve
it over and over again can i
do something like this in my action?


static Collection _collection;

if (collection == null ){
   _collection = getCollectionFromDB();
}

form.setCollection = _collection









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


Mime
View raw message