J2EE TECHONOLOGY
Prepared By:
Govind Singh
Branch: Computer Science
Roll No. : 2010UCS016
Training Location :
Hewlett-Packard Education Services,
Jaipur
About HPES
• HP is the largest IT solution and UNIX training
company worldwide.
• HP has been in the education business for over
30 years.
• HP is having more than 400 education centers
worldwide.
Content
 Introduction to J2EE
 Servlet
 JSPs
 MVC Architecture
 Introduction to Structs 1.3 Framework
Introduction To J2EE
• J2EE is java’s Enterprises Edition that
interfaces and provide platform for different
technologies.
• J2EE defines a model for developing multi-tier,
web based enterprises applications.
Two Tier Architecture
• Client can view output in the Browser
• Server having both Web Server and Database
Server.
Client Server
Three Tier Architecture
• Business Logics and Database Logics has been
separated.
• It is adopted by J2EE.
client app server server
7
Three Tier architecture(Cont..)
Web Logics
Web Server
(Tomcat, JBoss)
Browser
(IE, Firefox,
Opera)
Desktop
(PC or MAC)
Database
Database
Server
SQLHTTP
HTML tablesvision
touch
Presentation
Layer
Application
Layer
Persistence
Layer
Servlet
• Servlets are java codes having HTML inside.
• Servlets are better then CGI
Output
Source Code
CGI
Based
Webserver
CGI
Based
Webserver
Request CGI1
Child for CGI1
CGI
Based
Webserver
Servlet Based Webserver
JVM
Request CGI1
Child for CGI1
Request Servlet1
CGI
Based
Webserver
Servlet Based Webserver
JVM
Servlet1
Request CGI1
Child for CGI1
Request CGI2
Request Servlet1
CGI
Based
Webserver
Child for CGI2
Servlet Based Webserver
JVM
Servlet1
Request CGI1
Child for CGI1
Request CGI2
Request Servlet1
Request Servlet2
CGI
Based
Webserver
Child for CGI2
Servlet Based Webserver
JVM
Servlet1
Servlet2
Request CGI1
Child for CGI1
Request CGI2
Request CGI1
Request Servlet1
Request Servlet2
CGI
Based
Webserver
Child for CGI2
Child for CGI1
Servlet Based Webserver
JVM
Servlet1
Servlet2
Request CGI1
Child for CGI1
Request CGI2
Request CGI1
Request Servlet1
Request Servlet2
Request Servlet1
CGI
Based
Webserver
Child for CGI2
Child for CGI1
Servlet Based Webserver
JVM
Servlet1
Servlet2
Request CGI1
Child for CGI1
Servlet vs. CGI
Servlet Working
Client Server
Request
Response
HelloServlet.java
helloServlet.class
Read
Generate
Servlet
Client
ServerServlet
container
thread
request
response
Servlet(cont…)
Servlet Working
2
3
1
4
5
6
JSP(Java Serve Page)
• JSP is HTML having Java Code inside it.
JSP(Java Server Page)
Client Server
Request
Response
Hello.jsp
helloServlet.class
helloServlet.java
Read
Generate
Execute
MVC Architecture
• The model is logical backbone of the
application.
• The view (presentation) is responsible to
display the data provided by the model in a
specific format
• The controller handles the model and view
layers to work together
MVC Architecture
Struts History
• Created in 2000 by Craig R. McClanahan
• Donated to ASF(Apache Software Foundation) in 2000
• Current stable release: 2.3
Struts 1.3.x Framework
• Apache Struts is a platform activity.
• Composable Request Processor( for SSLEXT configuration)
• Supports Serialization
• "Extends" attribute
• "isCommitted" Exception Handling
• Postback Actions
• Wildcard ActionConfig properties
Struts Directory Structure
Summer training seminar

Summer training seminar

  • 1.
    J2EE TECHONOLOGY Prepared By: GovindSingh Branch: Computer Science Roll No. : 2010UCS016 Training Location : Hewlett-Packard Education Services, Jaipur
  • 2.
    About HPES • HPis the largest IT solution and UNIX training company worldwide. • HP has been in the education business for over 30 years. • HP is having more than 400 education centers worldwide.
  • 3.
    Content  Introduction toJ2EE  Servlet  JSPs  MVC Architecture  Introduction to Structs 1.3 Framework
  • 4.
    Introduction To J2EE •J2EE is java’s Enterprises Edition that interfaces and provide platform for different technologies. • J2EE defines a model for developing multi-tier, web based enterprises applications.
  • 5.
    Two Tier Architecture •Client can view output in the Browser • Server having both Web Server and Database Server. Client Server
  • 6.
    Three Tier Architecture •Business Logics and Database Logics has been separated. • It is adopted by J2EE. client app server server
  • 7.
    7 Three Tier architecture(Cont..) WebLogics Web Server (Tomcat, JBoss) Browser (IE, Firefox, Opera) Desktop (PC or MAC) Database Database Server SQLHTTP HTML tablesvision touch Presentation Layer Application Layer Persistence Layer
  • 8.
    Servlet • Servlets arejava codes having HTML inside. • Servlets are better then CGI Output Source Code
  • 9.
    CGI Based Webserver CGI Based Webserver Request CGI1 Child forCGI1 CGI Based Webserver Servlet Based Webserver JVM Request CGI1 Child for CGI1 Request Servlet1 CGI Based Webserver Servlet Based Webserver JVM Servlet1 Request CGI1 Child for CGI1 Request CGI2 Request Servlet1 CGI Based Webserver Child for CGI2 Servlet Based Webserver JVM Servlet1 Request CGI1 Child for CGI1 Request CGI2 Request Servlet1 Request Servlet2 CGI Based Webserver Child for CGI2 Servlet Based Webserver JVM Servlet1 Servlet2 Request CGI1 Child for CGI1 Request CGI2 Request CGI1 Request Servlet1 Request Servlet2 CGI Based Webserver Child for CGI2 Child for CGI1 Servlet Based Webserver JVM Servlet1 Servlet2 Request CGI1 Child for CGI1 Request CGI2 Request CGI1 Request Servlet1 Request Servlet2 Request Servlet1 CGI Based Webserver Child for CGI2 Child for CGI1 Servlet Based Webserver JVM Servlet1 Servlet2 Request CGI1 Child for CGI1 Servlet vs. CGI
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
    JSP(Java Serve Page) •JSP is HTML having Java Code inside it.
  • 15.
    JSP(Java Server Page) ClientServer Request Response Hello.jsp helloServlet.class helloServlet.java Read Generate Execute
  • 16.
    MVC Architecture • Themodel is logical backbone of the application. • The view (presentation) is responsible to display the data provided by the model in a specific format • The controller handles the model and view layers to work together
  • 17.
  • 18.
    Struts History • Createdin 2000 by Craig R. McClanahan • Donated to ASF(Apache Software Foundation) in 2000 • Current stable release: 2.3
  • 19.
    Struts 1.3.x Framework •Apache Struts is a platform activity. • Composable Request Processor( for SSLEXT configuration) • Supports Serialization • "Extends" attribute • "isCommitted" Exception Handling • Postback Actions • Wildcard ActionConfig properties
  • 20.