Hi Linda, there is a difference between declaring and registering a bean: declareBean() tries to inform the BSF engine explicitly about the bean, such - if supported by the language - that it gets implicitly defined for the script, whereas declared beans need to be looked up by the script before being able to use it.
Or with other words: have the script look-up the bean before using it. E.g., in Javascript: myBean = bsf.lookupBean ("myBean"); /* retrieve a registered Java object */ HTH, ---rony