Pages

Tuesday, April 24, 2012

Session 1 - Java web programming

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.




      

1 comment:

  1. Good one Lukshica .. But there are many conceptual mistakes.

    // Servlet can process JSP.//
    not really, JSP itself is a Servlet. Vimal will explain this today I guess.

    //The client request a simple hello.jsp file to the server//
    client makes a request which is HTTP URL only. Server will find out which JSP/Servlet to be redirected.

    There are many other issues too .. But this is the way to go .. when you write out something, you can clear yourself by revising them.

    ReplyDelete