I'd like to retrieve an ArrayList from a public static method (getMyArray)
in class A to iterate through this ArrayList in my jsp.  An instance of this
class A is saved in session scope after successful login.

in class A:
    public static ArrayList getMyArray(A a)
        {
                // the Arraylist will contain B objects
                ...
        }

I don't know how to code the bean:define to get this ArrayList out.  I can
get the instance of A with this:

<bean:define id="myA" name="keyA" type="com.mycompany.A" scope="session" />
<bean:define id="myArray" name="myA" ???? type="java.util.ArrayList" />

<logic:iterate id="listID" name="myArray" type="com.mycompany.B" >
...
</logic:iterate>


Please help.  Thanks for your time.

Thinh

Reply via email to