Hi John,

I'm stil not able to figure it out.

I've put in the stack trace if you might want to take a look. Apart from
the <logic:iterate> tag, i'm using <logic:equal>, <logic:notEqual>,
<logic:present>.

/*********** stack trace starts here ******************/
java.lang.ArrayIndexOutOfBoundsException
        at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
J2EE].server.http.EvermindJSPWriter.print(EvermindJSPWriter.java:632)
        at
org.apache.struts.util.ResponseUtils.writePrevious(ResponseUtils.java:18
1)
        at
org.apache.struts.taglib.logic.IterateTag.doAfterBody(IterateTag.java:40
2)
        at
_jsp._OrderEntryDetails._jspService(_OrderEntryDetails.java:1936)
        [SRC:/jsp/Details.jsp:483]
        at com.orionserver[Oracle9iAS (9.0.3.0.0) Containers for
J2EE].http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
        at
oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:510)
        at
oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:257)
        at
oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:423)
        at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:346)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
        at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatch
er.java:674)
        at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletReques
tDispatcher.java:276)
        at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
J2EE].server.http.ServletRequestDispatcher.forward(ServletRequestDispatc
her.java:188)
        at
org.apache.struts.action.ActionServlet.processActionForward(ActionServle
t.java:1759)
        at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1596)
        at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:195)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:309)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
        at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatch
er.java:674)
        at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletReques
tDispatcher.java:276)
        at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.j
ava:736)
        at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:244)
        at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
J2EE].util.ThreadPoolThread.run(ThreadPoolThread.java:64)

/*********** stack trace ends here ***********/

--Shashi.


-----Original Message-----
From: John Raley [mailto:[EMAIL PROTECTED]]
Sent: Sunday, September 01, 2002 10:09 PM
To: Struts Users Mailing List
Subject: Re: ArrayIndexOutOfBoundsException while using <logic:iterate>


Hi Shashi,

Where does the page generation stop?  I don't think logic:iterate itself

will walk off the end of a list (and even if it did that would throw 
IndexOutOfBounds, not ArrayIndexOutOfBounds).  It might be thrown from 
some other code.

John
Shashikiran M wrote:

>Hi All,
>
>Has any one faced with "ArrayIndexOutOfBoundsException" while using
>nested <logic:iterate> tags?
>Presently my implementation is as follows:
>
><logic:iterate id="ambiguityDet" name="OrderEntryFormBean"
>property="ambiguityList"
>type="com.tycoelectronics.usosp.order.util.AmbiguityDetail" >
>
>       <logic:iterate id="errMsg" name="ambiguityDet" property="errors"
>type="java.lang.String">
>               {... my code to display errors in id="errMsg" ...}
>            </logic:iterate>
>
>            <logic:iterate id="partSearchResult" name="ambiguityDet"
>property="partList"
>type="com.tycoelectronics.usosp.part.util.PartSearchResult">
>               {... my code to display data in id="partSearchResult"
>...}
>            </logic:iterate>
>
></logic:iterate>
>
>The properties "ambiguityList", "errors" and "partList" are ArrayLists.
>
>Please let me know your experience with <logic:iterate>.
>
>Thanks in advance.
>
>Regards,
>Shashi.
>
>--
>To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>
>  
>


-- 
Check it out: Map -> JavaBean
http://dynclass.sourceforge.net/




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


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

Reply via email to