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