Keith,

Thanks a lot for your help!  Like you said, I am not using
a mapping file.  Only default introspection.  But my JDK
is 1.3.1.  I really want to keep it simple.  Any other clue?

Thanks!

Jun

Keith Visco wrote:

>
>Marshalling is automatically recursive. 
>
>Are you using a mapping file or relying on default introspection? My
>guess is that you are using default introspection because JDK 1.2
>collections are not handled automatically by the introspector. 
>
>You'll need to use a mapping file to describe your class, something
>like:
>
><?xml version="1.0"?>
><mapping>
>   <class name="org.acme.MyClass1" auto-complete="true">
>      <!-- describe the list field, but let castor handle the other
>fields -->
>      <field name="myList" type="org.acme.MyClass2"
>collection="arraylist"/>
>   </class>
></mapping>
>
>If you are already using a mapping file...please share it so that we may
>can help debug the problem.
>
>For more information on mapping files...please see
>[http://castor.exolab.org/xml-mapping.html].
>
>Thanks,
>
>
>--Keith
>
>Jun Yang wrote:
>
>>Hi,
>>
>>I have a class that has a List in it.  The object of this class that I
>>want to marshal is the root of a tree structure.  I'd like to marshal it
>>recursively so that everything reachable from this object is saved.  But
>>Marshaller stops at the first level.  How can I let it go down to leaves?
>>
>>Thanks!
>>
>>Jun
>>
>>-----------------------------------------------------------
>>If you wish to unsubscribe from this mailing, send mail to
>>[EMAIL PROTECTED] with a subject of:
>>        unsubscribe castor-dev
>>
>
>----------------------------------------------------------- 
>If you wish to unsubscribe from this mailing, send mail to
>[EMAIL PROTECTED] with a subject of:
>       unsubscribe castor-dev
>
>
>

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to