Does this somehow give you the ability to post XML data to a struts
framework and have it mapped to an ActionForm properly? A complaint I've
often heard about struts is it does not map XML data elements to ActionForm
bean elements. If you want to post XML data from , let's say, a browser and
map that to an ActionForm it is completely manual.



                                                                           
                                                                           
                                         To:                               
                    "Zille               <[EMAIL PROTECTED]>  
                    Hassan"              cc:     (bcc: Will Spies/Towers   
                    <Z.Hassan@bto        Perrin)                           
                    n.ac.uk>             Subject:     Re: struts and       
                                         castor                            
                    08/16/2001                                             
                    10:41 AM                                               
                    Please                                                 
                    respond to                                             
                    struts-user                                            
                                                                           
                                                                           



Well, it is a quiet popular tool but i am a bit new to this sort of
technologies and to be honest have been very much into JDBC and having
problems with managing both Castor and struts. But once you get the idea of
the frame work, i have heard that life becomes much more simpler.


 ----- Original Message -----
 From: Robert Taylor
 To: [EMAIL PROTECTED]
 Sent: Thursday, August 16, 2001 3:33 PM
 Subject: RE: struts and castor

 Zille, I am researching CastorJDO as an alternative to writing DAO (Data
 Access Objects). That is, currently I have to write all the SQL to
 interact with a database table. It would be nice to perform persistence in
 a Java-centric way as opposed to having to write all the SQL. So, to
 answer your question, no I am not familiar with Castor mapping tools but
 have done quite a bit of research on the Struts framework. I currently
 research CasterJDO as a possible alternative to brute force DAO.

 robert


      -----Original Message-----
      From: Zille Hassan [mailto:[EMAIL PROTECTED]]
      Sent: Thursday, August 16, 2001 10:18 AM
      To: [EMAIL PROTECTED]
      Subject: Re: struts and castor

      are you familiar with the struts and Castor mapping tools


      ----- Original Message -----
      From: Robert Taylor
      To: [EMAIL PROTECTED]
      Sent: Thursday, August 16, 2001 3:12 PM
      Subject: RE: struts and castor

      Hello Zillle,

      If I understand you correctly, you have a bean that performs a simple
      query and you want to incorporate some business logic. I would create
      a separate object/bean for to perform the business logic and it can
      delegate the appropriate responsibilities to the simple query bean
      that you have already created. IMHO, this allows your simple query
      bean to be reused.

      HTH.

      robert

            -----Original Message-----
            From: Zille Hassan [mailto:[EMAIL PROTECTED]]
            Sent: Thursday, August 16, 2001 10:02 AM
            To: [EMAIL PROTECTED]
            Subject: struts and castor

            I am using struts with castor

            Now this is how I go about it
            1. create the JSP
            2. Then the XXXForm.java, XXXAction.java for struts
                    In the XXXAction.java file I define the Query to be
            used with the Castor and make the castor connection.
                    In the XXXAction.java file the forwarding to the URL or
            success or failure is defined.
            3. Then I have the bean which is being refered to in the Query.
            Through this bean data is being read and inserted into the
            datbase.
            4. Mapping of the bean's attribute.


            No if I want to incorporate any business logic in any bean,
            which one should it be, should i create a seperate bean or
            should i use the bean on Number 3.


            Any help would be appreciated more than ever




Reply via email to