Re: ActionForm and EJB

2006-06-08 Thread Frank W. Zammetti
On Thu, June 8, 2006 3:07 pm, Michael Jouravlev wrote: > So your argument is basically that database roundtrips will degrade > performance. Yes, but that's only one aspect of it... scalability is also a factor, as is number of breakage point, as is cost, because to overcome the first two you have

Re: ActionForm and EJB

2006-06-08 Thread Dave Newton
Michael Jouravlev wrote: > Check out Stripes, great stuff. It is indeed pretty cool. I really dislike putting my URL mappings in code, though, if for no other reason than if I'm testing or need to stub out a URL handler temporarily for some reason I have to touch things in two different places (m

Re: ActionForm and EJB

2006-06-08 Thread Frank W. Zammetti
On Thu, June 8, 2006 2:46 pm, Craig McClanahan wrote: > Always slow to get on the latest bandwagon, eh Frank :-) Who, what, me?!? Nhh! (hey, you were the last Ant vs. Maven holdout, I was happy I wasn't the only one... you left me man!! LOL) > That being said, XML configuration fil

Re: ActionForm and EJB

2006-06-08 Thread Michael Jouravlev
On 6/8/06, Craig McClanahan <[EMAIL PROTECTED]> wrote: On 6/8/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: * Annotations are not a good idea when the configuration concept should not be a concern of the person actually writing the code. In webapps, for example, I don't believe in conf

Re: ActionForm and EJB

2006-06-08 Thread Michael Jouravlev
On 6/8/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: On Thu, June 8, 2006 2:12 pm, Craig McClanahan wrote: > * Enhance the user experience by catching errors as quickly > as possible (ideally client side in a webapp), with error messages that > are relevant to the user's context in that pa

Re: ActionForm and EJB

2006-06-08 Thread Craig McClanahan
On 6/8/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: [snip] I'm still not sold on the whole concept of annotations myself... it seems to encourage scattering things throughout the code base that otherwise would be centralized. Always slow to get on the latest bandwagon, eh Frank :-) Ironi

Re: ActionForm and EJB

2006-06-08 Thread Frank W. Zammetti
On Thu, June 8, 2006 2:12 pm, Craig McClanahan wrote: > IMHO, where and how to do what kinds of validations is going to be the > next > "great debate" in application framework design :-) Hehe, it's a debate that's been around for a while, not sure it can be the "next" great debate :) LOL > * Enha

Re: ActionForm and EJB

2006-06-08 Thread Craig McClanahan
On 6/8/06, Dave Newton <[EMAIL PROTECTED]> wrote: Frank W. Zammetti wrote: > On Thu, June 8, 2006 1:09 pm, Michael Jouravlev wrote: > >> On the other hand, the whole idea of Struts/Commons Validator sucks >> big time, because database already has all necessary validations, >> domains, triggers,

Re: ActionForm and EJB

2006-06-08 Thread Dave Newton
Frank W. Zammetti wrote: > On Thu, June 8, 2006 1:09 pm, Michael Jouravlev wrote: > >> On the other hand, the whole idea of Struts/Commons Validator sucks >> big time, because database already has all necessary validations, >> domains, triggers, etc. Since most apps use database anyway, input >>

Re: ActionForm and EJB

2006-06-08 Thread Frank W. Zammetti
On Thu, June 8, 2006 1:09 pm, Michael Jouravlev wrote: > On the other hand, the whole idea of Struts/Commons Validator sucks > big time, because database already has all necessary validations, > domains, triggers, etc. Since most apps use database anyway, input > data should either be validated dir

Re: ActionForm and EJB

2006-06-08 Thread Michael Jouravlev
On 6/8/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: Second, an ActionForm is, usually, used to repopulate an HTML form on a page when an error occurs, or when a page is initially shown. Since HTML forms only deal in Strings, another recommendation you frequently hear is to only have Strings

Re: ActionForm and EJB

2006-06-08 Thread Michael Jouravlev
On 6/8/06, chamal desilva <[EMAIL PROTECTED]> wrote: Hi, I read few articles on struts. They recommend not to send action form class to EJBs as data holders. They recommend we should use general classes for holding data to decople web tier with EJBs. What they say must be correct but I still ha

Re: ActionForm and EJB

2006-06-08 Thread Truong Xuan Tinh
chamal desilva wrote: > Hi, > > I read few articles on struts. They recommend not to > send action form class to EJBs as data holders. They > recommend we should use general classes for holding > data to decople web tier with EJBs. > That's right. > What they say must be correct but I still have

Re: ActionForm and EJB

2006-06-08 Thread Frank W. Zammetti
Hi Chamal, The recommendation of not passing ActionForms to your business classes stems from two thoughts... First, by passing an ActionForm, you tie your business clases to Struts. Should you want to change to another framework later, your business classes should be unaffected, therefore, passi

ActionForm and EJB

2006-06-08 Thread chamal desilva
Hi, I read few articles on struts. They recommend not to send action form class to EJBs as data holders. They recommend we should use general classes for holding data to decople web tier with EJBs. What they say must be correct but I still have few doubts (Maybe b'cause I am not experienced). Do