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 …

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 …

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 …

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 …

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 …

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, …