Subject: Re: FormBeans ... as an Interface.
From: "Vic C." <[EMAIL PROTECTED]>
 ===
Martin,
thanks for a reply. Let me see if I can be more coherent and then ask 
you a question please.

Context:
Many intelligent people are implying that formbeans should never be a 
model/data layer. I agree with that if one does EJB with Struts.

However, I found that sometimes it is practical that formbeans should be 
a model/data layer, by simply having formbeans delegate to DAO and not 
have actions transfer from BO or DAO.
I myself have had great success on large projects with this approach. I 
teach this approach. And I recommend this approach to my clients. On a 
big project, KISS works magic. I found it to be more MVC.
So... am I wise to disagree with so many intelligent people?
This is why I started a thread. I first did Struts as per docs, the 
formbean not the model approach.
I found that formbean as a model make Struts mode levergable and 
competitive to alterative designs. My criteria being how can a developer 
be more productive and write more attainable code.
At least I would like people to say that there are several designs for 
formbeans use, with pluses and minuses, and not "formbeans is not a 
model". M

To my clients I recommed that they use formbeans as a model.


I think you said that you do not like EJB much; and would like to know 
how you have personally implemented model (CRUD/Master-Detail/multi-row 
updates) at a high level?

Minor comments:
- 
Users follow code samples, good or bad.
- 
The main point is that more people do it wrong, not MVC, perhaps because 
they find it hard. Maybe formbean as model makes it easier.
- 
If you do use formbean as a model you can unit test it.
- 
The EJB connection is... if you do EJB do not use formbeans as model 
otherwise... maybe formbeans should be the model.
- 
If people use JSTL.... Then use formbeans as model.
- 
Cathedral comment was meant to say, hey, if formbeans as model was 
better, than lets keep the door open and not dictate not to do this.
- 
I meant to say no need for BO or VO if Formbean is the model.
- 
Some people make Struts look like a complex PetStore and not as MVC. 
KISS should be advocated.
- 
I put webPIM using formbean as model on SourceForge, and was looking for 
a realistic example of formbeans not the model. Some of the comments 
about you should do Struts this way, as opposed to the way I did Struts 
was. One is a theory, the other actual.
- 
I had wonderful experience using Struts with corporate developers once I 
use formbeans as model.

Vic


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to