We have already learnt about core Java and how to compile and learn the Java programs.
In this unit we shall cover the basics of Java Servlet and different interfaces of Servlet. Java Servlets are the
small, platform-independent Java programs that runs in a web server or application server and provides server-side processing such as accessing a database and e-commerce transactions. Servlets are widely used for web processing.
Servlets are designed to handle HTTP requests (get, post, etc.) and are the standard Java replacement for a variety of other methods, including CGI scripts, Active Server Pages (ASPs). Servlets always run inside a Servlet Container. A Servlet Container is nothing but a web Server, which handles user requests and generates response.
Servlet Container is different from Web Server because it is only meant for Servlet and not for other files (like .html etc). In this unit, we shall also see how the Servlet Container is responsible for maintaining lifecycle of the Servlet. Servlets classes should always implement the javax.servlet.Servlet interface.
This interface contains five methods, which must be implemented. We shall learn how these methods can be used in Servlet programming and how Servlet and JDBC combination has proved a simple elegant way to connect to database.
In this unit we shall cover the basics of Java Servlet and different interfaces of Servlet. Java Servlets are the
small, platform-independent Java programs that runs in a web server or application server and provides server-side processing such as accessing a database and e-commerce transactions. Servlets are widely used for web processing.
Servlets are designed to handle HTTP requests (get, post, etc.) and are the standard Java replacement for a variety of other methods, including CGI scripts, Active Server Pages (ASPs). Servlets always run inside a Servlet Container. A Servlet Container is nothing but a web Server, which handles user requests and generates response.
Servlet Container is different from Web Server because it is only meant for Servlet and not for other files (like .html etc). In this unit, we shall also see how the Servlet Container is responsible for maintaining lifecycle of the Servlet. Servlets classes should always implement the javax.servlet.Servlet interface.
This interface contains five methods, which must be implemented. We shall learn how these methods can be used in Servlet programming and how Servlet and JDBC combination has proved a simple elegant way to connect to database.
No comments:
Post a Comment