Are you WRITING a book on WebWork? Please, don't, if your understanding is at this level...
On Fri, 28 Mar 2003, Snehal K.Gandhi wrote: > If webwork was replaced by some other framework chances of the Action > class will be replaced by some thing else > therefore it isn't a part of the model domain but tightly coupled to the > WebWork controller, Another reason to consider > the webwork Action class part of the controller is that it has access to > the ServletDispatcher and therefore all of the > controller resources which the model domain should not know about, so > Action class is part of the controller. Sort of yes, sort of no. The action contains attributes, which can be of any kind and nature, although JavaBeans are the most appropriate. Actions contain references to these attributes, and the attributes are automatically populated (according to various rules) from the Controller. Your attributes are domain-specific, and shouldn't be coupled to WebWork at all. A domain-specific Action is necessary, in order to enforce execution behaviors. Finding a MVC that doesn't use a specific Action-like mechanism would be ... difficult. > My Explanation about WebWork Model is: Depending of the type of > architecture ur application uses, the model portion can take many > different forms. In a two tier application,where the web tier interacts > diectly with a data store,the model classes may be a set of java > classes. Where as in the case of complex enterprise application(Where > web tier communicates with Ejb Server),the model portion will be a > enterprise java bean. The model doesn't have to be an EJB, and making your Actions EJBs ... I haven't really though of that directly, and I am sure it's possible, but you'd be better off using Actions as proxies to your EJBs instead. Others may have different opinions. Like I say, I'd not thought of EJB-as-Action in WebWork's context (my own framework, since abandoned in favor of WebWork, used EJB-as-Action as a core concept.) --------------------------------------------------------- Joseph B. Ottinger [EMAIL PROTECTED] http://enigmastation.com IT Consultant ------------------------------------------------------- This SF.net email is sponsored by: The Definitive IT and Networking Event. Be There! NetWorld+Interop Las Vegas 2003 -- Register today! http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork