I need to make a small correction to the build.xml in my previous email.
The build.xml in the jar references castor-0.9.3.9.jar.
This throws a NPE when you run (doh!).

You need to use 0.9.4 or 0.9.4.1.

--Erik



      > -----Original Message-----
      > From: Ostermueller, Erik 
      > Sent: Tuesday, January 07, 2003 1:04 PM
      > To: [EMAIL PROTECTED]
      > Subject: Re: [castor-dev] How do I handle java.util.Hashtable
      > 
      > 
      > Dhruv,
      > 
      >         Isn't email great?  I couldn't come close to 
      > pronouncing your name.
      > But with email I can greet you, opening with 'Dear 
      > Dhruv' and you don't know
      > the difference.
      > 
      > Anyway, see if the attached little example suits your needs.
      > The class 'Parent' uses a HashMap to store the keys/values.
      > 
      > --Erik
      > 
      > 
      >       > -----Original Message-----
      >       > From: Dhruv Vohra [mailto:[EMAIL PROTECTED]]
      >       > Sent: Tuesday, January 07, 2003 12:45 PM
      >       > To: [EMAIL PROTECTED]
      >       > Subject: [castor-dev] How do I handle 
      > java.util.Hashtable
      >       > 
      >       > 
      >       > Hi,
      >       > 
      >       >    I have Java Classes that contain "Hashtable".
      >       > 
      >       > a) How do I write a mapping.xml to map both the key
      >       > and value of a Hashtable?
      >       > 
      >       > b) Any recommended way to write the XML instace file
      >       > to reprsent Hashtable: 
      >       >    . The key should be an attribute and the value the
      >       > nodeValue For example:
      >       >      For a person named DKV who is of age 23:   
      >       >      <Person name="DKV">23</Person>
      >       > 
      >       >  or
      >       > 
      >       >    . <Person>
      >       >       <name> DKV </name>
      >       >       <age> 23 </age>
      >       >      </Person>
      >       > 
      >       > 
      >       > I have to find a solution for exsiting "working" code
      >       > and I am new to castor. Please help. The examples do
      >       > not talk about Hashtable - only "collection/List". I
      >       > could also not find any answer in the archives.
      >       > 
      >       > Thanks,
      >       > DKV
      >       > 
      >       > PS) If this cannot be done then any workaround?
      >       > 
      >       > __________________________________________________
      >       > Do you Yahoo!?
      >       > Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
      >       > http://mailplus.yahoo.com
      >       > 
      >       > 
      > ----------------------------------------------------------- 
      >       > 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