javax.servlet.jsp.el.ELException: The "[]" operator was supplied with an index value of type "java.lang.String" to be applied to a List or array, but that value cannot be converted to an integer. org.apache.commons.el.Logger.logError(Logger.java:481) org.apache.commons.el.Logger.logError(Logger.java:498) org.apache.commons.el.Logger.logError(Logger.java:566) org.apache.commons.el.ArraySuffix.evaluate(ArraySuffix.java:227) org.apache.commons.el.ComplexValue.evaluate(ComplexValue.java:145) org.apache.commons.el.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:263) org.apache.commons.el.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:190) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(PageContextImpl.java:917) org.apache.jsp.el_jsp._jspService(el_jsp.java:96) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
SCJP 5.0<br />SCWCD 1.4<br />Preparing for <b>SCEA</b>.<br /><b>"I prefer an interesting vice to a virtue that bores."</b>
yes sorry for the answer. I didn't see it that time. When you're using double quotes you are searching inside the list. When you remove quote it just searches for an attribute. So you are correct. Someone correct me if I'm wrong.
I guess so. But right now I don't have my HFSJ with me. So I'm not sure. Did you check in the errata and can anyone come up with an idea? [ November 28, 2006: Message edited by: Dilshan Edirisuriya ]