Registering a Servlet in Deployment Descriptor

This article explains Registering a Servlet in Deployment Descriptor. Basically, registering a servlet in the deployment descriptor requires providing the <servlet> tag in the web.xml file. Also, within this tag, the <servlet-name>, and <servlet-class> tags specify the name of servlet and associated java class respectively. Additionally, we can also specify <init-parameter> tags to provide the initialization parameters for a servlet. […]

Understanding Deployment Descriptor

Basically, a deployment descriptor refers to a configuration file in a web application. Whenever we create a J2EE application, it includes web components comprising of servlets and JSP files, For the purpose of managing the dynamic web application, we can create a web.xml file. In fact, the web.xml is our deployment descriptor. This web.xml file contains information regarding URL mapping, registering servlets, […]

Servlet and its Life Cycle

In this article, I will explain Servlet and its Life Cycle. To begin with, let us first understand what a servlet is. What is a Java Servlet? In fact, the java servlet is a technology to create dynamic web pages. In short, servlets are classes that reside on a web server or application server. Furthermore, a webserver executes a servlet whenever […]

Input Parameters in a Servlet

Since, a web page contains a form to get data from the users, the Input Parameters in a Servlet are received from the HTML form. Basically, an HTML form contains various input elements like textbox, checkbox, dropdownlist, radio buttons and so on. In order to pass the values entered by the user, these input elements must have the name attribute […]

Creating a Simple HTTP Servlet

In this article on Creating a Simple HTTP Servlet, I will explain writing the code of your first servlet using the Eclipse IDE. Basically, a servlet is nothing but a java class that serves the purpose of extending the capabilities of a server. Furthermore, a servlet handles the request and response operations. Steps for Creating a Simple HTTP Servlet The […]

How to Create Moving Balloons Project in Scratch 3.0

In this article, I will explain How to Create Moving Balloons Project in Scratch 3.0. Basically, the application demonstrates how to control the motion of a sprite using various types of block commands. Also, you can view this project here. The Steps Describing How to Create Moving Balloons Project in Scratch 3.0 At first, we need to select a backdrop, that […]

Cloning Sprites in Scratch 3.0

Basically, Cloning Sprites is an important activity that forms part of many Scratch games. This article explains cloning sprites until a condition is satisfied. Also, it explains how to delete a clone. The following project demonstrates cloning sprites. Command Blocks used in the Project The following command blocks are used in cloning sprites. At first, we use the event command so that the script […]

Block Commands in Scratch 3.0

In this article, I will explain Block Commands in Scratch 3.0. Basically, the block commands in Scratch represent the coding blocks. In fact, we have nine different categories of block commands. The following list shows these nine block commands. Motion Looks Sound Events Control Sensing Operators Variables My Blocks The following section describes each set of block commands in brief. […]

Constructors in Kotlin

Basically, the constructors in Kotlin can be categorized as the Primary Constructor and the Secondary Constructors. In other words, a class in Kotlin can have a primary constructor and one or more secondary constructors. Creating Constructors in Kotlin While a class in Kotlin can have one primary constructor, it can include several secondary constructors. For the purpose of creating secondary constructors, we need to use the […]

Getting Started with Scratch 3.0

In this article on Getting Started with Scratch, I will explain the basics of Scratch 3.0 programming. Basically, Scratch 3.0 was released on January 2, 2019. Scratch 3.0 Environment In order to Getting Started with Scratch 3.0, just go to its official website https://scratch.mit.edu/ and sign in if you have already joined it. Otherwise, click on the Join button as shown below. After […]