i guess the extreme case would be that your entire web app having only
one Action class to handle every page. and EVERYTHING will be in that
one big Action class... validation, business, logic, even persistence
functions!! the whole web app in one class!! only one class to
maintain!! woohoo!!
The idea would be to use BusinessDelegate to decouple your business
logic from the web-tier. Use your struts Actions to get stuff out the
request, session, etc. Then pass plain old java objects (POJOs) to
the methods of your BusinessDelegate.
This way the business logic inside is not dependent o
Here's a concrete example of why it's not a good idea...
I had a Struts-based application that I was recently asked to expose (some functions
of) as Web Services. Well, this started me down my whole Struts Web Service Enablment
Project route, but the point is that because it had to be quick, qu
Is the Business Delegate a web-tier component? which
helps in decoupliong the web -tier component from the
business tier component or is it a business tier
component?
--- Craig McClanahan <[EMAIL PROTECTED]> wrote:
> What he (Matt) said.
>
> If you are going to tie your Business Delegate clas
What he (Matt) said.
If you are going to tie your Business Delegate class to web tier APIs,
there is not really much point in having them at all -- you could just
do your business logic in the Action.execute() method directly and
save having to maintain two classes. (That's a sub-optimal idea as
I had already put this point across telling that the
business delegate should be designed to service any
kind of client.But we have a senior member on our team
who says that anyway beyond the business delegate the
session object is not passed on thereon further to the
ejb's etc, so it is a matter o
It's a bad idea because what if in the future you want to use that
business logic elsewhere? What if you want to use it in a webservice or
in a GUI standalone application. The business logic should have to know
nothing about web servers and HttpSession objects, unless your business
is buildin
Hi,
We have been mulling over an issue where , we have
people on our team who are proposing to pass the
HttpSession which we have in our Action classes to the
buisness delegate(which is an ordinary java class
which encapusulates calls the session facade). While
the j2ee blueprint for the business
8 matches
Mail list logo