This article explains Creating Deployment Descriptor in a Dynamic Web Project in Eclipse JEE. Basically, a deployment descriptor is called web.xml and contains configuration information regarding a dynamic web application. However, when we create a dynamic web project in Eclipse IDE, the web.xml file is not available by default. Therefore, we need to create this …
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 …
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 …
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 …
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 …
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 …
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, …