I have a small shopping cart example running with one small problem left.

I am using 2 ejbs, one is a Cart bean and the other is a CartManager bean
that keeps a hash table of cart objects and the session id's each is tied
to.  The Cart Manager is accessed through a non-ejb class that should be
accessible to a JSP page via the <jsp:useBean> tag, but isn't.  Orion is
having a problem invoking the useBean tag when given the class name of the
object to instantiate.  HEre is the code:

<jsp:useBean id="cartFactory" scope="session" class="cart.CartFinderBean">
 <%
 System.err.println("Error using CartFinderBean");
 %>
</jsp:useBean>

(the CartFinderBean calls a method in the cart manager to lookup the cart
instance for that user, and instantiate a cart if none is found in the hash
table)

however, it seems that this tag is not operating properly.  I get errors
when trying to refer to the Cart object that is ultimately invoked using a
method in cartFactory (the instance).  The question is this:  How do I let
orion know that I want it to be able to access this CartFinderBean class
file?  Where do I put it, and what descriptors must I fill out?  It is not
an EJB, so there are no interfaces, which should not be a problem.....
anyone have any ideas?

derek akers

(p.s. sorry to all of you who were bothered with the receipt request... I
forgot that it was turned on)


Reply via email to