Struts is a controller and so is Mach II so you can't really combine them. You can implement Struts (in Java) and use CF views (which is what the article shows). The article talks about using CFCs for the model too but doesn't show how that would work (I can see how you could call CFCs from CF views but not from JSP views or even from Struts itself).It is actually possible to call a CFC from a Servlet or JSP. However, the amount of work it takes in CFMX makes the whole concept worthless. With BD, we created an Java invocation API for CFCs to solve that very problem, but I am not sure if that API is supported at this point. In the meantime, I would suggest either avoid calling CFCs from Java or do some sort of indirect invocation through a CFM using request scope message passing.
Struts is quite a bit of machinery although it does have some cool stuff in it but you'll need to write Java, potentially quite a bit of Java. Mach II is a much simpler way to implement MVC purely in CF. Your choice is really going to come down to whether you're happy writing in Java or whether you'd rather stick to CF. Personally I feel Struts is overkill for most of the stuff folks are building in terms of simple web apps (and some people think Mach II is overkill too, even tho' it is much smaller and simpler!).I agree that Struts is overkill. However, I think always using a framework of some kind is important because I have yet to find a simple web application that doesn't get more complex as time goes on. Much easier to put the framework in upfront than later.
-Matt
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' in the message of the email.
CFCDev is run by CFCZone (www.cfczone.org) and supported by Mindtool, Corporation (www.mindtool.com).
An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]
