Skip to Content
0
Former Member
Dec 31, 2005 at 03:25 AM

ListIterator not working in JSP page

22 Views

Hello,

I am using an ArrayList in a JSP as follows:

<%

ArrayList missingFieldsArr = (ArrayList) HeaderBean.getMissingFieldsArr();

ListIterator i = (ListIterator)missingFieldsArr.listIterator();

%>

<hbj:scrollContainer

id="scrContError"

width="320"

height="50"

>

<table width="60%">

<% while(i.hasNext()) {

String str = (String) i.next();

%>

<tr>

<td width="100%">

<hbj:textView

id="txtErrorLst"

wrapping="true"

text="<%=str%>"

/>

</td>

</tr>

<% } %>

</table>

</hbj:scrollContainer>

Iterating through the ArrayList works when I test via portalapp.xml in NDS, but it does not when I test via the iview in the Portal. The error I'm receiving is:

***

Portal Runtime Error

An exception occurred while processing a request for :

iView : pcd:portal_content/com.nbcuni.sc_portal_Content/com.nbcuni.Roles/com.nbcuni.SAP_SC_Testing_Pre-Bom/com.nbcuni.product_information_prebom_ws/com.nbcuni.pre_bom_pg/com.nbcuni.pre_bom

Component Name : PBS.Inbox

The exception was logged. Inform your system administrator..

Exception id: 06:37_30/12/05_0106_4554750

See the details for the exception ID in the log file

***

Any thoughts?

Thanks for your help,

-Jamie