Moving thread to DEV .... If you snag Spring.Web from CVS, you'll find that it does all that, but in a page-centric way. It will populate a business delegate for you, and then all your event handle has to do is call the appropriate method. (Essentially, Spring.Web provides the "managed beans" that JSF has but ASP.NET lacks. ) You might want to think of the event handlers as if they were methods of a DispatchAction. If you need to go off to some other page, there is a "Result" method that works just like an ActionForward. The events (DispatchAction methods) fire long before the page renders, so you can forward (or "transfer") with impunity.
It's cool that Spring.Web does this, but it is starting to seem silly that each of these frameworks has to reinvent the same wheel. I've been working on an Application Controller framework, based on Struts and CoR, that pushes most of the rigamorale away from the presentation layer and into the control layer, so that it can be shared by various presentation layers. Struts would call the Controller from an Action, JSF would call it from a backing bean, ASPX would call it from a code-behind. It will still be another week before I can post anything (the ASF repositories are down for maintenance this weekend). But, this controller doesn't conflict with what Spring.Web is doing, and you would want to use Spring.NET for an IOC container anyway. So snag the CVS version of Spring.Web, and have yourself some fun. :) -Ted. On Thu, 17 Mar 2005 10:22:29 -0600, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > ----- Original Message ----- > From: [EMAIL PROTECTED] > To: <[EMAIL PROTECTED]> > Sent: Thu, 17 Mar 2005 10:15:52 -0600 > Subject: Struts Being Page Centric?? > > Ted, > > Thanks for the post! Spring.Web looks pretty good; I'll download and play > with it. > > I am not a Struts expert, but I feel, that developing with ASP.NET takes > longer than with Struts. > Like you wrote: Struts has everything! ASP.NET has a ton of stuff, but I feel > the code behind slows > me down in development. > > I want to use the code behind either on the control or on the web form to > bind the values from and > to the domain model. I want to minimize the logic and code in the code behind > as much as possible. > No events, simple stuff, so less skilled programmers can create it. I'd like > to pass the code > behind object to the Action, so I can extract the info from it and set value > to it directly from > the Action. I'd like a direct controller, that would act on model and view > and it shouldn't be the > code behind, it should be the action. I haven't seen a framework that would > do this in ASP.NET. > > Any thoughts? > > Thanks, > Attila Domokos > > Moving thread to DEV .... > > > Ted: how do you use ASP.NET? Do you have a framework you use? > > It's under active development, but Spring.Web > > [http://opensource.atlassian.com/confluence/spring/display/NET/Spring.Web] > > is starting to look very Struts-like. (Not surprising considering the > similarities between Spring MVC (for Java) and Struts Classic.) > > -Ted --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
