Wednesday 24 June 2015

Serverside Programming

We can make static webpages with just HTML.But if you want your website to be professional or you want to make some dynamic web page, then you need to learn serverside programming.


Java servlets:
                           Java servlets are one technology to produce dynamic response. Servlet is a class instantiated by server to produce a dynamic response.

Servlet Life cycle:

init():
                 This method is called when the servlet is instantiated.It must be returned before any other methods are called.
Service():
                 This is a method that is directly called by server when an HTTP request is received, default service method calls doGet() or (related methods).
Destroy();
                  This method is called when the server shuts down.

No comments:

Post a Comment