struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Sherman <a...@teachandtravel.com>
Subject Re: Business Logic Bean Question
Date Fri, 04 Oct 2002 17:31:00 GMT
Billy Ng wrote:
 > I have been reading some articles briefly talking about the business
 > logic beans.  The way I build my Struts app is to use the Action's
 > perform or execute method to do the business logic.  Then, I set the
 > data into a bean and pass it off to the JSP.  It works just fine.
 > However, my question is if I should do the business logic in Action?
 > Am I supposed to hand down the job to a business logic bean?  It will
 > be helpful if anyone can provide me samples or links for how a
 > business logic looks alike.

A good rule is to never have anything in javax.servlet imported into a 
class that does business logic.

Actions call Business Objects which pass back Value Objects. Value 
Objects are created with Manager Objects.

My two cents,

A.

-- 
Adam Sherman
Software Developer
Teach and Travel Inc.
+1.613.241.3103



--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message