Thursday, 24 January 2013


FRAMEWORK COMPARISION
Struts                                                                         JSF
Struts(*.do/*.action)
JSF(*.faces/*.jsf)
Execute()
Jsp->action=”#{StudentBean.action}”
Action/ActionForm
JavaBean
Struts-config.xml
Faces-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.xml
sqlMapConfig.xml
Persistance.xml
HibernateUtil
IbatisUtil
JPAUtil
Student.hbm.xml
Student.hbm.xml/Student.xml
N/A (not applicable)
Student.java
Student.java
Student.java
Configuration
Reader
Persistancee
SessionFactory
SqlMapClientBuilder
EntityManagerFactory
Session
SqlMapSession/SqlMapClient
EntityManager
Session.beginTranscation
Commit/rollback
Sqlmapsession.startTranscation();
Sqlmapsession.commitTranscation();
Sqlmapsession.endTranscation();



Struts                                                                      Spring(MVC)
ActionServlet
DispactcherServlet
Struts-config.xml
Spring-config.xml/servletName-servlet.xml
Form
Bean(Command Object)
Action(classes)
Controller(classes)
ActionMapping
HandlerMapping
RequestProcessor
N/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