Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tapestry Wiki" for change notification.
The following page has been changed by ErikVullings: http://wiki.apache.org/tapestry/TapestryFasttrackForStrutsProgrammers ------------------------------------------------------------------------------ = Architecture Comparison = - Struts is based on the HTTP model (or more accurately Sun's Servlet API). The core idea is using the Struts controller servlet and its configuration file (struts-config.xml) to examine URLs (or HTTP form posts), instantiate a java bean (subclass of ActionForm) and set its properties using the URL parameters (or HTTP form post), invoke data validation method defined within the ActionForm, and then pass it along to a java class (subclass of Action or LookupDispatchAction) defined within the Struts configuration file (struts-config.xml) and finally looks up and dispatch to a destination view, typically a jsp page (there are other view technologies that are compatible with Struts, please refer to the Struts web site for more information). So it should be fair to say that Struts is action oriented (URL.do -> action.java -> destination.jsp). + Struts is based on the HTTP model (or more accurately Sun's Servlet API). The core idea is using the Struts controller servlet and its configuration file (struts-config.xml) to examine URLs (or HTTP form posts), instantiate a java bean (subclass of Action``Form) and set its properties using the URL parameters (or HTTP form post), invoke data validation method defined within the Action``Form, and then pass it along to a java class (subclass of Action or Lookup``Dispatch``Action) defined within the Struts configuration file (struts-config.xml) and finally looks up and dispatch to a destination view, typically a jsp page (there are other view technologies that are compatible with Struts, please refer to the Struts web site for more information). So it should be fair to say that Struts is action oriented (URL.do -> action.java -> destination.jsp). Tapestry takes a slightly different approach. The architecture centered around the page. - =Comparison = + = Comparisons = - * struts-config.xml ~= app.application * + This section attempts to roughly compare the similarities and differences between the 2 frameworks. - * ActionForm + Action ~= page.java * + == struts-config.xml vs. app.application == - * jsp ~= page.html + page.page * + == Taglibs vs. components == - = Conclusion = + == Jsp vs. page.html + page.page == + == ActionForm + Action vs. page.java == + + == Form initialization == + + == Form validation == + + = Conclusions = + --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
