Posts

Showing posts with the label Java Servlets

OCEJWCD 6 Tutorial: The servlet’s environment

Image
The OCEJWCD 6 is the new exam for Java EE web component developers. This tutorial explains “The servlet’s environment” exam topic in detail with code examples. Disclaimer : The contents are taken from free resources available on web including Oracle site and Wikipedia. Servlets communicate with web users over a request response pattern executed by the servlet container. HTTP protocol can process the request−response pattern. Servlet container is essentially a part of a web server that interacts with the servlets. The servlet container is used for managing other features of the servlet lifecycle. This article shows how to communicate with Servlets. And also understand the HTTP protocols, HTML forms, HttpServlet, related APIs and sample program to manage client sessions and cookies. Contents 1 HTTP protocol 1.1 Example client request 1.2 Example server response 1.3 Types of HTTP Request 2 HTML forms 2.1 HTML Page Structure 2.2 HTML Form 3 HttpServlet an...

OCEJWCD 6 Tutorials: Introduction to Java Servlets

Image
This tutorial is one of the certification exam topics which gives attention into Java Servlet Technology . This will help your preparation to pass the 1Z0-899 Java EE 6 Web Component Developer Certified Expert Exam . Servlet is a Java class that supplies compatible mechanism used to extend the ability of a Web-server that can support dynamic content generation. A servlet can almost be considered an applet that runs on the server side. Servlet provides a platform-independent methods to build Web-based applications. Servlets is a highly efficient CGI programs written in Java. When a Servlet-capable Web server receives a request for a URL that corresponds to a Java Servlet, the server hands the request off to the Servlet for processing. The Servlet dynamically produces a response to the request (typically an HTML Web page) and sends it back to the requesting browser. Describe web applications, CGI, and the role of Java Java Web application: Web application is an computer applic...