> if you don't know Java. Architecting the struts-config takes some work. > Deploying can be a royal pain.
Jakarta Struts Config Mappings are not all that Hard to understand. You can take a peek into CFMX/JRun xml mappings.. they are fairly straight forward. I dont think you can use Struts as is in CFMX but yes.. borrow some good ideas. e.g. <ActionMapping action="portal.aboutUs" scope="url" validate="false" view="system/view/aboutUs.cfm"> <ConfigData dataClass="MyDataClass" method="getAboutUs" returnType="struct" varName="aboutUs" methodParams="request,form,url" /> </ActionMapping> Dynamically execute CFC methods.. dataClass = Your CFC (MyDataClass) method = getAboutUs var Type returned = struct var Name = variables.aboutUs (Controller dynamically executes this for you) The mappings are parsed once into application scope. Joe Eugene > -----Original Message----- > From: John Paul Ashenfelter [mailto:[EMAIL PROTECTED] > Sent: Monday, July 14, 2003 5:23 PM > To: CF-Talk > Subject: Re: Anyone using Jakarta Struts for cfmx? > > > > Here is an article on using Struts with in CFMX: > > > > http://www.macromedia.com/devnet/mx/coldfusion/articles/struts.html > > Yeah, I've seen that. CFCs as a model instead of JavaBeans, EJB, etc and > baking CFML business logic into CFM pages in the View instead of > JSP. How is > either of those things a truly useful idea? > > And you'd have to work the CF pages really hard to get the benefits of the > inherent Struts framework (eg the validator). Whoopee, I can mix a few cfm > tags into the JSP taglibs I'm already using. And can dig under > the covers to > Java from CF to manipulate the stuff that's truly important. Why add the > overhead? > > There's not a lot that CF offers that's not already in a taglib > now -- not a > knock against CF, just a fact. The only advantage is that it "transitions" > your developers to Java. I'd say take the pain and learn Java -- > non-trivial > Struts apps are not easy. Building your own custom tag libs is > not real easy > if you don't know Java. Architecting the struts-config takes some work. > Deploying can be a royal pain. > > If you want your developers to learn Java, give them the > resources and have > them learn Java. If you want to stick with CF, there's FB4 and Mach-II > frameworks in active development. I'm a big fan of the Agile family of > development methodologies and mixing Struts and CFMX seems like a > backwards > step for the development process, not a forward one. Having worked on 4 > migration projects involving CF programmers transitioning to > Struts, I can't > recommend it. Teach them Java and Struts. Or don't use Java on > that project. > > > > I have not used it with in CFMX for J2EE, but just in JRun: > > http://www.macromedia.com/support/jrun/ts/documents/tn18297.htm > > Note: The installation in this article is ok, but the directions for > > the "Simple Struts App" is lacking. > > > > > > > > Tkx, > > Jim > > > > -----Original Message----- > > From: John Paul Ashenfelter [mailto:[EMAIL PROTECTED] > > Sent: Monday, July 14, 2003 3:57 PM > > To: CF-Talk > > Subject: Re: Anyone using Jakarta Struts for cfmx? > > > > > > Having done a couple Struts projects, you need a couple of good > Java folks > > to help wade through implementing Struts. I'd look at Fusebox > (3 or 4, not > > MX nee Mach-II) if you're looking for a plug and play framework *for > > ColdFusion*. Struts has many more built in features (eg the > validator) but > > is a lot more complicated. For our small CF5 to Struts migration project > > (roughly 30k lines of CF code), the struts-config file was > something like > > 2800 lines (of course now you can distribute the Struts config > files, but > > not at that time). > > > > If you're using CFMX for J2EE, you could consider doing some apps in > Struts, > > some in CFMX, but I don't see a lot of advantage to mixing them in the > same > > app -- I think it will be pretty complicated and not sure what value it > > gives you. > > > > Regards, > > > > John Paul Ashenfelter > > CTO/TransitionPoint > > ----- Original Message ----- > > From: "Smith, Don , CTR , WHS/PSD" <[EMAIL PROTECTED]> > > To: "CF-Talk" <[EMAIL PROTECTED]> > > Sent: Monday, July 14, 2003 3:50 PM > > Subject: Anyone using Jakarta Struts for cfmx? > > > > > > > Is anyone using Jakarta Struts for CFMX and can they comment toward > > > its > > use? > > > > > > I am looking for a published development framework that would be > > > flexible enough for development in, plus allow our team to investigate > > > new technologies outside of CFMX -I like what I read of Struts' > > > integration of Java technology but I haven't implemented it yet. > > > > > > I'm working with some staff for whom integration of existing Java > > libraries > > > would be a stretch and others who could handle it easily, but it would > > > require ramp-up time and education. > > > > > > I am hoping to find a framework that would allow me to point new > > developers > > > to existing materials so I would not have to write up an entire "code > > > like > > I > > > do" book. I am also hoping that it would add something on top of CFMX > > > and not merely reorganize CFMX without adding anything. > > > > > > How was your: > > > Ease of development and organization > > > Integration with Java for non-Java programmers > > > Success rate in getting users to adapt > > > > > > THANKS! > > > > > > Don > > > > > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4