This document provides an introduction to Java web development. It discusses web development in general and divides it into client-side coding and server-side coding. It then lists some common server-side languages like ASP, PHP, ColdFusion and ASP.NET. It provides more details on servlets and Java Server Pages (JSP), describing them as Java classes that handle HTTP requests and responses on the server. It includes an example of using Java Database Connectivity (JDBC) to connect to a database and retrieve records from a table to display on a web page.
2. Web Development
The term Web development is used for several different
activities which are linked to the developing of a website
especially for the WWW which is the World Wide Web
or also called as an intranet.
The Web development strategies include the business
of the e-commerce, the web designing, the web content
development, the client and sever-side coding and also
the configuration of the web server.
The web development can be branched into two main
categories, the Client Side Coding and the Server Side
Coding. The roles of a web developer generally include
the Graphic and Web designing, information
architecture and the copyediting with the usability of the
web and the optimization of the search engine.
3. Types of server side web
development languages
ASP (Active Server Page)
PHP (Hypertext Preprocessor)
Cold Fusion
ASP.NET
Servlet/Jsp
4. What is Servlet
A servlet is any Java class that can be invoked
and executed on a server, usually on behalf of a
client. A servlet works on the server, while an
applet works on the client. An HTTP servlet is a
Java class that handles an HTTP request and
delivers an HTTP response. HTTP servlets reside
on an HTTP server and must extend the Java
javax.servlet.http.Http Servlet Class so that they
can run in a generic servlet engine framework.
5. What is JSP?
JSP (a TLA for Java Server Pages) is a server-
side implementation of the java language. Very
similar in structure to ASP, it enables the
developer to build dynamic websites and
incorporate the flexibility of java, XML etc.
One of the most powerful features of JSP is that
you can access JavaBeans and Enterprise
JavaBeans (EJB) components from a JSP file.
JavaBeans can be class files, serialized
Beans, Beans that are dynamically generated by
a servlet, or a servlet itself. Each JSP is
automatically compiled to a servlet by the JSP
engine, the first time it is requested, and then
executed