|
From: John C. <joh...@sa...> - 2003-04-09 18:12:40
|
I think I may have come across the wrong way. I didn't mean to imply anything about Struts being better then Spring or vice versa. Quite the contrary. I've been using Spring since I've read Rod's book (before it became spring) and I've been using it in one of my projects as a = learning endeavor. I also use Struts both at work at in "playing around" with my = own stuff. I completely agree with what you said previously about Struts = and Spring and what you just said as well. My idea is to use Spring in the business and middle tier and either Spring again in the front end or = Struts, I haven't decided yet. Struts is JUST MVC that's all. Spring is much = more. Now that's out of the way... What I wanted to see an example of, was how to do reusable validation = logic on business components in Spring in a way that is totally separate from = the MVC framework one ends up using. The examples in Rod's book are ok, = but, well without offending Rod, somewhat simple in detail and = implementation. A more realistic scenario is probably what I am looking for. Regards, John > -----Original Message----- > From: j=FCrgen h=F6ller [werk3AT] = [mailto:jue...@we...] > Sent: Wednesday, April 09, 2003 1:56 PM > To: spr...@li... > Subject: [Springframework-developer] Spring vs Struts (was: = interface21 > Properties editor in BeanWrapperImpl) >=20 > Hi John, >=20 > What exactly would you like to see an example for? Reusable business = logic > services via Spring? Validation not tied to web classes? For a start, = the > box office demo application coming with Rod's book shows both. = Indeed, we > need lots of additional documentation and best practices guides... = but > currently we're still busy implementing and refining ;-) >=20 > I didn't mean to imply that Struts would not allow for reusable = business > logic at all. It just doesn't support it in any way, so you have to = find > or build a suitable infrastructure yourself. Therefore, many Struts > applications just separate at the web MVC level: Business logic ends = up in > web controllers but not in dedicated business logic services. That's = where > using Spring as middle tier framework for Struts web apps makes = sense. >=20 > Of course, Struts shares this particular limitation with other web = MVC > frameworks like WebWork. This isn't meant as offence, such = infrastructure > is simply beyond their scope. >=20 > Regards, > Juergen >=20 >=20 > -----Original Message----- > From: John Cavacas [mailto:joh...@sa...] > Sent: Wednesday, April 09, 2003 7:30 PM > To: spr...@li... > Subject: RE: [Springframework-developer] interface21 Properties = editor > in BeanWrapperImpl >=20 >=20 > > Struts, on the other hand, is "just" a web MVC framework, targetted = at > > web-centric applications. It doesn't address reusable business = logic > > services or data access objects at all. For example, compare the > > validation support: Struts' is tied to ActionForms while Spring's = isn't > > tied to web classes at all. >=20 > [John Cavacas] >=20 > I would love to see an example and explanation of this. Maybe I'm = just > thick > headed but I just don't get it. I'm sure others would too. >=20 > Thanks, > John >=20 >=20 >=20 >=20 > This communication is intended for the use of the individual(s) or = entity > it > was addressed to and may contain confidential and/or privileged > information. > If the reader of this transmission is not the intended recipient, you = are > hereby notified that any review, dissemination, distribution or = copying of > this communication is prohibited. If you receive this communication = in > error, please notify the sender immediately and delete this = communication > from your system(s) to which it was sent and/or replicated to. (c) = 2002 > Sapiens Americas Corp. >=20 >=20 > ------------------------------------------------------- > This SF.net email is sponsored by: Etnus, makers of TotalView, The > debugger > for complex code. Debugging C/C++ programs can leave you feeling lost = and > disoriented. TotalView can help you find your way. Available on major = UNIX > and Linux platforms. Try it free. www.etnus.com > _______________________________________________ > Springframework-developer mailing list > Spr...@li... > = https://lists.sourceforge.net/lists/listinfo/springframework-developer >=20 >=20 > ------------------------------------------------------- > This SF.net email is sponsored by: Etnus, makers of TotalView, The > debugger > for complex code. Debugging C/C++ programs can leave you feeling lost = and > disoriented. TotalView can help you find your way. Available on major = UNIX > and Linux platforms. Try it free. www.etnus.com > _______________________________________________ > Springframework-developer mailing list > Spr...@li... > = https://lists.sourceforge.net/lists/listinfo/springframework-developer This communication is intended for the use of the individual(s) or = entity it was addressed to and may contain confidential and/or privileged = information. If the reader of this transmission is not the intended recipient, you = are hereby notified that any review, dissemination, distribution or copying = of this communication is prohibited. If you receive this communication in error, please notify the sender immediately and delete this = communication from your system(s) to which it was sent and/or replicated to. =A9 2002 Sapiens Americas Corp. |