2. JEE(java enterprise edition)
• It is not a installable software.
• It is a set of software specifications to develop
web server/application server.
• Working with JEE module is nothing but working
with web server or application server.
• In Advanced java software training we study one
JSE technology(JDBC) and two JEE
technology(SERVLET, JSP).
3. Java Web Servers in IT market
• Tomcat- From Apache.
• Resin- From Resin soft.
• JWS(java web server)-From Sun MS.
• Jetty-From Adobe.
4. Java Application Servers
• Weblogic-From BEA(Oracle).
• Websphere-From IBM
• Glassfish-From Oracle Corp.
• Oracle 10g AS-From Oracle Corp.
• Jboss- Initially from Apache but now under Red
Hat.
• Jrun-From Adobe.
• PAS- It is developed by Indian vendor company
called Pramathi software solution,Hyderabad.
5. JDBC
• It is a JSE persistence technology can be used to
write persistence logic performing persistence
operation on persistence data of persistence
store. Its latest version is
4.x.
• Jdbc 4.x important api package are:
java.sql
javax.sql
javax.sql.rowset
6. Sun microsystems
Jdbc technology contains rules and guidelines
to develop JDBC drivers
JDBC driver for
Oracle
JDBC driver for
mysql
JDBC driver for
postgresql
7. Servlet
• Servlet is a java web technology that
allows to develop single instance multiple
thread based server side web components
in java web application.
• Servlet is JEE technology given by sun
microsystems having set of rules and
guidelines to develop container.
• Servlet is used to develop enterprise
application that means web application and
distributed application.
8. Servlet API 3.0 important packages
• java.servlet
• javax.servlet.http
• javax.servlet.annotation
• javax.servlet.jsp
10. • To send “hyper text” from browser to
server and server to browser we use
protocol http.
• The text that allows non-sequential access
is called hyper text.
• The latest version of protocol http is 1.1.
Protocol Http
11. The Data carries along with
request(taken as hhpp)
h-http request method(GET,POST etc).
h-http request header(user- agent, accept etc).
p-path of resource(/TestApp/test.html).
p-request params (sno=101&sname=raja).
12. The Data carries along with
response(taken as SCH)
S-http response status code(100-599).
C-response content(the message of
pw.println(-)method)
H-response hesders(refresh, contextType etc).
13. Http request with detailed data
• Post
• /TestApp/test.html Misc Info
• Accept: text/html, text/xml
Host: www.rimt.ac.in
user-agent: mozila
Accept-language: un-us
Accept-encoding: gzip Request Headers
Keep-alive:300
Connection: keep-alive
<<<<<<<<<<<<<<<blank line <<<<<<<<<<<<<<<<<<<<<<<<<<
user=raja & pwd= hyd request body/payload/form data
14. JSP
• It is a Sun microsystems supplied
java based web technology that allows
to develop tag based web resource in
java web application having capability
to generate dynamic web pages.
• Now days in real time project JSP is
used to write view layer presentation
logic
15. • Internally for every jsp an equivalent JES(jsp
equivalent servlet) class will be generated by jsp
page compiler and the container JASPER uses the
support of servlet container CATALINA to execute
the JES class.
Jsp Life Cycle Convenience
• jspInit(): for instantiation event
• _jspService(-,-): for request arrival event
• jspDestroy(): fro destruction event
JSP Internals
16. Conclusion
In Real time MVC 2 Based enterprise
application
• JSP is used as presentation logic(view
layer)
• Servlet is used for controller
logic(controller layer)
• JDBC is used for persistence logic
using the help of java class.(model
layer)