>
>I have a lot of informational beans that hold static reference data (think
>ISO codes, State abbreviations, etc...) With these types of beans, I have
>the choice of instantiating a singleton object reference to the bean and
>accessing the methods through the object, or making all the methods "public
>static" so I can access them via BeanName.method(). For the former, the bean
>does all of it's initialization and database access in it's constructor and
>my JSP's have something like the following at the top:

Isn't this a prime candidate for application-level beans?  These are 
instantiated
when the servlet is started and reused, no?

-- Michael 


Reply via email to