This session was conducted by JK. First he talked about why they
started ySchool project and what they going to do with this course.From this course I hope that we can get the ability to develop an
open source project.
What
I learned
What is web programming?
Web programming is about interaction
between the computers via browser.JSP and Servlets are Java’s web
technologies.
Web Server – The webserver
contains the all web data. When a client requests a web object it gives the correct object to the client.
Eg: - Apache Server
ISS
Servlet Container – It is also a
webserver. It is most specific to dynamic data.When
we write java related applications the apache server doesn’t accept them. Therefore we need a servlet. Servlet can process JSP.
Application Server - Application server also a server which exposes business logic to client applications through various protocols.
Process - when a client request a simple web page
- The client request a simple hello.jsp file to the server
- The server contains the jsp container. Which is used for process JSP pages
- The container knows which servlet controller is appropriate to process this page and send to it.
- Then the servlet page is generated.
- The page is send back to the container as a servlet class file with a response message.
- The container execute it and send the response to the client.
MVC - Model View Controller
MVC is a way of splitting an application in to three parts: a model, a view and a controller.
Nowadays we have to satisfy multiple type of end users. There fore we need a Model View Controller to support different type of users.
In web applications
JSP pages are the views and the servlets are as controllers.