You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by ZT...@za.safmarine.com on 2003/08/05 12:37:06 UTC

/ /OREF:CPT9BF02 Servlet Error: net.msl.stackdates.web.Carrier: java.lang.ClassCastException: net.msl.stackdates.web.Carrier

I have a bean that's an arraylist that contains Carrier objects. I'm
trying to access the name property on the Carrier object but keep
getting the above error.
I've tried nested:iterate but with no luck - keep getting a null
pointer exception.

<logic:iterate id="carrier" name="carriers" type=
"java.util.ArrayList" scope="application">
<TR>

<TD align="left" bgcolor="#99cce9"><FONT size="1" color="#000000"
face="Verdana">

BLAH...

<TD align="left" bgcolor="#99cce9"><FONT size="1" color="#000000"
face="Verdana">
      </FONT><bean:write name="carrier" property="name"/></TD>
<TD align="left" bgcolor="#99cce9">

BLAH
</logic:iterate>

Help will really be appreciated...
Tx



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: / /OREF:CPT9BF02 Servlet Error: net.msl.stackdates.web.Carrier: java.lang.ClassCastException: net.msl.stackdates.web.Carrier

Posted by Nagendra Kumar O V S <na...@ikigo.com>.
<logic:iterate id="carrier" name="carriers" type="net.msl.stackdates.web
Carrier" scope="application">


-------Original Message-------

From: Struts Users Mailing List
Date: Tuesday, August 05, 2003 04:15:54 PM
To: struts-user@jakarta.apache.org
Subject: Re: / /OREF:CPT9BF02 Servlet Error: net.msl.stackdates.web.Carrier:
java.lang.ClassCastException: net.msl.stackdates.web.Carrier

hi,
the type attribute in the iterate should be Fully qualified Java class name
of the carrier(i.e, exposed by the id attribute)..

-- nagi

-------Original Message-------

From: Struts Users Mailing List
Date: Tuesday, August 05, 2003 04:09:07 PM
To: struts-user@jakarta.apache.org
Subject: / /OREF:CPT9BF02 Servlet Error: net.msl.stackdates.web.Carrier:
java.lang.ClassCastException: net.msl.stackdates.web.Carrier

I have a bean that's an arraylist that contains Carrier objects. I'm
trying to access the name property on the Carrier object but keep
getting the above error.
I've tried nested:iterate but with no luck - keep getting a null
pointer exception.

<logic:iterate id="carrier" name="carriers" type=
"java.util.ArrayList" scope="application">
<TR>

<TD align="left" bgcolor="#99cce9"><FONT size="1" color="#000000"
face="Verdana">

BLAH...

<TD align="left" bgcolor="#99cce9"><FONT size="1" color="#000000"
face="Verdana">
</FONT><bean:write name="carrier" property="name"/></TD>
<TD align="left" bgcolor="#99cce9">

BLAH
</logic:iterate>

Help will really be appreciated...
Tx



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


.

Re: / /OREF:CPT9BF02 Servlet Error: net.msl.stackdates.web.Carrier: java.lang.ClassCastException: net.msl.stackdates.web.Carrier

Posted by Nagendra Kumar O V S <na...@ikigo.com>.
hi,
the type attribute in the iterate should be Fully qualified Java class name
of the carrier(i.e, exposed by the id attribute)..

-- nagi

-------Original Message-------

From: Struts Users Mailing List
Date: Tuesday, August 05, 2003 04:09:07 PM
To: struts-user@jakarta.apache.org
Subject: / /OREF:CPT9BF02 Servlet Error: net.msl.stackdates.web.Carrier:
java.lang.ClassCastException: net.msl.stackdates.web.Carrier

I have a bean that's an arraylist that contains Carrier objects. I'm
trying to access the name property on the Carrier object but keep
getting the above error.
I've tried nested:iterate but with no luck - keep getting a null
pointer exception.

<logic:iterate id="carrier" name="carriers" type=
"java.util.ArrayList" scope="application">
<TR>

<TD align="left" bgcolor="#99cce9"><FONT size="1" color="#000000"
face="Verdana">

BLAH...

<TD align="left" bgcolor="#99cce9"><FONT size="1" color="#000000"
face="Verdana">
</FONT><bean:write name="carrier" property="name"/></TD>
<TD align="left" bgcolor="#99cce9">

BLAH
</logic:iterate>

Help will really be appreciated...
Tx



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


.