I never got any official confirmation on this, but in my experience, you can't do this
without the nested taglib. You can nest with strut tags, and you can index, and you
can nest and index, but only if the indexed object is the furthest nested. In other
words, sl.s[0] would work, but sl[0].s never will.
HTH
m
"Gregory F. March" <[EMAIL PROTECTED]> wrote:
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:
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]
---------------------------------
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software