Servlet is a dynamic web page that is developed in java. A web site contains a collection of static and dynamic web pages. The web site is physically a folder. The static pages are the HTML pages. The dynamic pages are the servlet pages or JSP(Java servlet page) pages that are developed in java. The website must inside a folder which shell be accessed by the web server.
The web server must be a java enabled web server for a running servlet and JSP pages. The examples of web server are - Tomcat, Web logic, IBM Web sphere, Jboss etc.
The example of web browser is –
1. MSIE(Microsoft Internet Explorer)
2. Mozilla Firefox
3. Netscape Navigator
The dynamic webpage contain the java statements and the HTML (Hyper Text Markup Language) statements and client scripts.
The java statements are used to access the machines resource in which the web application running such as file, Database ODBC (Open Database Connectivity) connection etc.
The web server converts the dynamic webpage into an HTML (Hyper Text Markup Language) output which is then redirected back to the client who made the request.