How do you write an index variable in an expression, where the index is also variable.
i.e.
Given:
HashMap foo = new HashMap();
foo.put("bar", "xyzzy");
foo.put("baz", "plugh");
String indexStr = "bar";
this doesn't seem to work. <c:out value="${ foo[indexStr] }"/> I think it is doing foo.get("indexStr") instead of foo.get("bar");
How can I do this the right way?
Thanks, Matt
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]