<logic:iterate id="carrier" name="carriers"
type="net.msl.stackdates.web.Carrier" scope="application">
-------Original Message-------
Date: Tuesday, August
05, 2003 04:15:54 PM
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-------
Date: Tuesday, August
05, 2003 04:09:07 PM
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: [EMAIL PROTECTED] For
additional commands, e-mail: [EMAIL PROTECTED]
. |