I have a class that contains a member that is a vector.  I have a vector
of these objects in the session and I am iterating through them.

I need to access the first element in that sub-vector.  How does one go
about doing this?

For example:

    public myClass {
       mySubClass[] sl;
    ...
    }

    public mySubClass {
       String s;
    ...
    }

and in my action, something like:

    new mySubList sl = new Vector();
    new myList l = new myClass();
    
    l.setV(v);

In my jsp, I have something like:

    <logic:iterate id="item" name="myList" type="myClass">
    <bean:write name="item" property="sl[0].s"/>
    </logic:iterate>

How do I get that sl[0].s into my jsp?  I'm looking for an "as
struts-only" solution as I can find.

Thanks...

/greg

--
Gregory F. March    -=-    http://www.gfm.net:81/~march    -=-    AIM:GfmNet

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to