KEMBAR78
J2EE Struts with Hibernate Framework | PPTX
J2EE STUTS WITH HIBERNATE
FRAMEWORK
BY:-
Parth Mewara
IT IV Year
 JAVA – A brief Introduction
 J2EE – Use and Need
 Servlets
 JSP
 Struts
 Hibernate
Topics to Cover
 Java is a computer programming language
 object-oriented
 "write once, run anywhere" (WORA)
 Developed by James Gosling and team at Sun
Microsystems
 Released in 1995.
JAVA – A brief Introduction
 Major release versions of Java, along with their release dates:
 JDK 1.0 (January 21, 1996)
 JDK 1.1 (February 19, 1997)
 J2SE 1.2 (December 8, 1998)
 J2SE 1.3 (May 8, 2000)
 J2SE 1.4 (February 6, 2002)
 J2SE 5.0 (September 30, 2004)
 Java SE 6 (December 11, 2006)
 Java SE 7 (July 28, 2011)
 Java SE 8 (March 18, 2014)
Versions of JAVA
JAVA
J2SEJava Standard
Edition
J2MEJava Micro
Edition
J2EEJava Enterprise
Edition
Variants of JAVA
 The Java 2 Enterprise Edition (J2EE) is
 Multi-tiered architecture
 Implementing Enterprise-class applications
 Web based applications.
 Open and standard based platform for
 developing, deploying and managing
 n-tier, Web-enabled, server-centric, and component-
based enterprise applications.
J2EE
 Component based model
 Container provided services
 Highly Scalable
 Simplified Architecture
 Flexible security model
J2EE Features
 Application clients and applets.
 Java Servlet and Java Server Pages technology (Web
Container)
 Enterprise JavaBeans components (enterprise beans)
(EJB Container)
J2EE Components
 Used to develop Server-Side applications.
 Java Servlets
 Java Server Pages
 Java Server Faces
J2EE Uses
 JSP (Java Server Pages) :- Alternate way of creating servlets
 JSP is written as ordinary HTML, with merged Java.
 The Java is enclosed in special tag.
 JSP files must have the extension .jsp
 JSP is translated into a Java servlet, which is then
compiled
 Servlets are run in the usual way
 The browser or other client sees only the resultant HTML,
as usual
JSP
Life Cycle of JSP
 JSP initialization
 The jspInit() method is executed at the start and only
once.
 If the JSP developer needs to perform
any JSP-specific initialization such as database
connections at the beginning this method can be specified.
 JSP execution
* public_service(HttpServletRequest req,
HttpServletResponse res)
{//code}
 JSP termination
<%! public void jspDestroy(){ . . . } %>
Architecture of JSP
 Struts is a set of cooperating classes, Servlets, and JSP
tags that make up a reusable MVC 2 design.
 Hence, Struts is a framework, rather than a library.
 Contains an extensive tag library and utility classes that
work independently of the framework.
Struts
 Object-relational mapping (ORM) solution for Java
 Data made persistent by storing in a database
 Hibernate takes care of this for us
Hibernate
 JDBC maps Java classes to database tables (and from
Java data types to SQL data types)
 Hibernate automatically generates the SQL queries.
 Hibernate provides data query and retrieval facilities and
can significantly reduce development time otherwise
spent with manual data handling in SQL and JDBC.
 Makes an application portable to all SQL databases.
Hibernate over JDBC
Hibernate Architecture
THANK YOU

J2EE Struts with Hibernate Framework

  • 1.
    J2EE STUTS WITHHIBERNATE FRAMEWORK BY:- Parth Mewara IT IV Year
  • 2.
     JAVA –A brief Introduction  J2EE – Use and Need  Servlets  JSP  Struts  Hibernate Topics to Cover
  • 3.
     Java isa computer programming language  object-oriented  "write once, run anywhere" (WORA)  Developed by James Gosling and team at Sun Microsystems  Released in 1995. JAVA – A brief Introduction
  • 4.
     Major releaseversions of Java, along with their release dates:  JDK 1.0 (January 21, 1996)  JDK 1.1 (February 19, 1997)  J2SE 1.2 (December 8, 1998)  J2SE 1.3 (May 8, 2000)  J2SE 1.4 (February 6, 2002)  J2SE 5.0 (September 30, 2004)  Java SE 6 (December 11, 2006)  Java SE 7 (July 28, 2011)  Java SE 8 (March 18, 2014) Versions of JAVA
  • 5.
  • 6.
     The Java2 Enterprise Edition (J2EE) is  Multi-tiered architecture  Implementing Enterprise-class applications  Web based applications.  Open and standard based platform for  developing, deploying and managing  n-tier, Web-enabled, server-centric, and component- based enterprise applications. J2EE
  • 7.
     Component basedmodel  Container provided services  Highly Scalable  Simplified Architecture  Flexible security model J2EE Features
  • 8.
     Application clientsand applets.  Java Servlet and Java Server Pages technology (Web Container)  Enterprise JavaBeans components (enterprise beans) (EJB Container) J2EE Components
  • 9.
     Used todevelop Server-Side applications.  Java Servlets  Java Server Pages  Java Server Faces J2EE Uses
  • 10.
     JSP (JavaServer Pages) :- Alternate way of creating servlets  JSP is written as ordinary HTML, with merged Java.  The Java is enclosed in special tag.  JSP files must have the extension .jsp  JSP is translated into a Java servlet, which is then compiled  Servlets are run in the usual way  The browser or other client sees only the resultant HTML, as usual JSP
  • 11.
  • 12.
     JSP initialization The jspInit() method is executed at the start and only once.  If the JSP developer needs to perform any JSP-specific initialization such as database connections at the beginning this method can be specified.  JSP execution * public_service(HttpServletRequest req, HttpServletResponse res) {//code}  JSP termination <%! public void jspDestroy(){ . . . } %> Architecture of JSP
  • 13.
     Struts isa set of cooperating classes, Servlets, and JSP tags that make up a reusable MVC 2 design.  Hence, Struts is a framework, rather than a library.  Contains an extensive tag library and utility classes that work independently of the framework. Struts
  • 14.
     Object-relational mapping(ORM) solution for Java  Data made persistent by storing in a database  Hibernate takes care of this for us Hibernate
  • 15.
     JDBC mapsJava classes to database tables (and from Java data types to SQL data types)  Hibernate automatically generates the SQL queries.  Hibernate provides data query and retrieval facilities and can significantly reduce development time otherwise spent with manual data handling in SQL and JDBC.  Makes an application portable to all SQL databases. Hibernate over JDBC
  • 16.
  • 17.