Summer training seminar
-
Upload
govind-singh-mahecha -
Category
Education
-
view
201 -
download
1
description
Transcript of Summer training seminar
J2EE TECHONOLOGY
Prepared By:Govind Singh
Branch: Computer ScienceRoll 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
PersistenceLayer
Servlet
• Servlets are java codes having HTML inside.• Servlets are better then CGI
Output
Source Code
CGIBased
Webserver
CGIBased
Webserver
Request CGI1Child for CGI1
CGIBased
Webserver
Servlet Based Webserver
JVM
Request CGI1Child for CGI1
Request Servlet1
CGIBased
Webserver
Servlet Based Webserver
JVMServlet1
Request CGI1Child for CGI1
Request CGI2
Request Servlet1
CGIBased
WebserverChild for CGI2
Servlet Based Webserver
JVMServlet1
Request CGI1Child for CGI1
Request CGI2
Request Servlet1
Request Servlet2
CGIBased
WebserverChild for CGI2
Servlet Based Webserver
JVMServlet1
Servlet2
Request CGI1Child for CGI1
Request CGI2
Request CGI1
Request Servlet1
Request Servlet2
CGIBased
WebserverChild for CGI2
Child for CGI1
Servlet Based Webserver
JVMServlet1
Servlet2
Request CGI1Child for CGI1
Request CGI2
Request CGI1
Request Servlet1
Request Servlet2
Request Servlet1
CGIBased
WebserverChild for CGI2
Child for CGI1
Servlet Based Webserver
JVMServlet1
Servlet2
Request CGI1Child for CGI1
Servlet vs. CGI
Servlet Working
Client Server
Request
Response
HelloServlet.java
helloServlet.class
Read
Generate
Servlet
Client
ServerServletcontainer
HttpRequest
thread
requestresponse
Servlet(cont…)
Servlet Working
2
3
1
4
5
6
JSP(Java Serve Page)
• JSP is HTML having Java Code inside it.
Java
Cod
e HTM
L
JSP
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
Displa
y to
use
rs
Combine view and model
Perform logics
& manage data
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