FrameWork Comaprison


FRAMEWORK COMPARISON
Struts                                                                         JSF
Struts(*.do/*.action)JSF(*.faces/*.jsf)
Execute()Jsp->action=”#{StudentBean.action}”
Action/ActionFormJavaBean
Struts-config.xmlFaces-config.xml
<action><managed-bean>
<forward>< navigation-case>
       <name>        <form-outcome>
        <path>        <to-view-id>

JSF is specification & the implementation is doneby Icefaces/Myfaces/RichFaces.....e.t.c




Hibernate                                           Ibatis                                                   JPA
Hibernate.cfg.xmlsqlMapConfig.xmlPersistance.xml
HibernateUtilIbatisUtilJPAUtil
Student.hbm.xmlStudent.hbm.xml/Student.xmlN/A (not applicable)
Student.javaStudent.javaStudent.java
ConfigurationReaderPersistancee
SessionFactorySqlMapClientBuilderEntityManagerFactory
SessionSqlMapSession/SqlMapClientEntityManager
Session.beginTranscation
Commit/rollback
Sqlmapsession.startTranscation();
Sqlmapsession.commitTranscation();
Sqlmapsession.endTranscation();



Struts                                                                      Spring(MVC)
ActionServletDispactcherServlet
Struts-config.xmlSpring-config.xml/servletName-servlet.xml
FormBean(Command Object)
Action(classes)Controller(classes)
ActionMappingHandlerMapping
RequestProcessorN/A ->pre &post can be done using Interceptor
Execute(AM,AF,HSR,HSResp)
in Action class
handleRequest() in Controller
ActionForward return type of execute()ModelAndView return type of handleRequest()

No comments:

Post a Comment