struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Sherman <>
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,


Adam Sherman
Software Developer
Teach and Travel Inc.

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message