Developing Web Applications in Java

Score: 0
13.00 USD /single lesson (60 min.)
Science / Programming / Java

Lesson schedule

Tutor score

Lessons given:

Students feedbacks

Tutor information

General information

nick patidarbhagwati
country India
languages English, Gujarati, Hindi


I am a professional programmer working on Java, Android and other technologies. I am providing training and tutoring from last 5 years. I want to utilize my experience by helping people in their work.

Experience: 5 years

About me

You normally adopt two main architectures when developing web applications in Java. The first architecture utilizes servlets and JSP in the middle tier to serve clients and process the business logic. This architecture is depicted in Fig 1.1. The middle tier is discussed during the servlets and JSP coverage.

Clients <----------->Servlets/Jsp Pages <----------------> Database

                                 (Web Container) Fig1.1

Small to medium-size applications use this design model.

The second architecture includes the use of J2EE server and Enterprise JavaBeans (EJB) and this is especially useful for large enterprise applications that need scalability. The architecture is shown in Fig1.2, and EJB.

Clients <-------------> [ Servlets/JSP Pages <-----------------> Database

                                    Enterprise beans]

                                    EJB Container

Servlets: The servlet technology is the foundation of web application development using the Java programming language. It is one of the most important Java technologies, and it is the underlying technology for another popular Java technology for web application development: JavaServer Pages (JSP). Therefore, understanding the servlet technology and its architecture is important if you want to be a servlet developer. Even if you plan to develop your Java web application using JSP pages alone, understanding the servlet technology helps you build a more efficient and effective JSP application.

Servlet  offers the following benefits that are not necessarily available in other technologies:

  • Performance. The performance of servlets is superior to CGI because there is no process creation for each client request. Instead, each request is handled by the servlet container process. After a servlet is finished processing a request, it stays resident in memory, waiting for another request.

  • Portability. Similar to other Java technologies, servlet applications are portable. You can move them to other operating systems without serious hassles.

  • Rapid development cycle. As a Java technology, servlets have access to the rich Java library, which helps speed up the development process.

  • Robustness. Servlets are managed by the Java Virtual Machine. As such, you don't need to worry about memory leak or garbage collection, which helps you write robust applications.

  • Widespread acceptance. Java is a widely accepted technology. This means that numerous vendors work on Java-based technologies. One of the advantages of this widespread acceptance is that you can easily find and purchase components that suit your needs, which saves precious development time.