This sounds good to me. It is the type of structure I have been using.
Brandon Goodin
Phase Web and Multimedia
P (406) 862-2245
F (406) 862-0354
mail@phase.ws
http://www.phase.ws
-----Original Message-----
From: Neil Pitman [mailto:npitman@interlink.net]
Sent: Monday, April 01, 2002 1:58 PM
To: Struts Users Mailing List
Subject: Re: Is this ok architecture for struts?
Rick,
I am a newbie. What is the motivation to having two business objects?
Is BO-II just a wrapper for use cae specific behavior? or does it have
all the business logic and leave BO-I as a just the physical DB work?
Could this be expressed in EJB terminology?
Rick Reumann wrote:
> I'm wondering if this a decent design architecture for a non-EJB web
> application using Struts. I'd appreciate any comments or advice. (Does
> it break any J2EE principles or not follow any, etc.) For this small
> example, this architecture is just for wanting to display a list of
> employees in a JSP page:
>
> BusinessDB Object I
> - database query returns ArrayList of EmployeeBean objects (these
> EmployeeBean objects have different datatype members other than
> String).
>
> Business Object II
> - makes call to above Buisness1 Object to get the ArrayList of
> EmployeeBeans. Now iterates through this List and makes
> a new ArrayList of EmployeeForm objects that have proper String
> representations of the EmployeeBean datatypes (ie- birthDate
> in 08/11/1969 format, double salary in currency format, etc).
>
> EmployeeAction Object (using EmployeeForm object )
> - typical struts action. Makes call to above Business object to get
> ArrayList of EmployeeForm objects and puts them into the request or
> session
>
> JSP
> use iterate tag and bean tag to display the EmployeeForm properties
>
>
> --
>
> Rick
>
> mailto:maillist@reumann.net
>
> "Any man, in the right situation, is capable of murder. But not any
> man is capable of being a good camper. So, murder and camping are not
> as similar as you might think."
> -Jack Handey
>
>
> --
> To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:struts-user-help@jakarta.apache.org>
>
>
--
Neil Pitman
npitman@interlink.net
+1.514.863.5465
--
To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-user-help@jakarta.apache.org>
--
To unsubscribe, e-mail: <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>
|