On Mon, 18 Mar 2002, John Baker wrote: > Horray. I thought so, ok well I get this: > > The error message was: Unable to find a value for "0" in object of > class "java.lang.String" using operator "[]" > > for: > > <c:when test="${page.blobs[0].state == Blobs.ASTATE}"> > > I've tried it with blobs being an array and a List (Vector). > > So could this be a bug?
Well, as before, it's hard to debug your code when I can't see it in full. The error message indicates that 'blobs' is actually a String, not an array or a list. All I can do is show you what DOES work. Here's a complete page: <%@ taglib prefix="c" uri="http://java.sun.com/jstl/ea/core" %> <% java.util.Date[] dates = new java.util.Date[3]; dates[0] = new java.util.Date(); dates[1] = new java.util.Date(); dates[2] = new java.util.Date(); pageContext.setAttribute("dates", dates); %> Current time in milliseconds: <c:out value="${page.dates[1].time}"/> This prints out output like: Current time in milliseconds: 1016474790054 Hope you can use this as a basis to determine what's wrong with your page. Best, -- Shawn Bayern Author, "JSP Standard Tag Library" http://www.jstlbook.com (coming this summer from Manning Publications) -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>