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 -----
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