More JSTL Examples

This article contains some more JSTL Examples. To begin with, the three tags that provide the functionality of the switch…case statement in Java are discussed. c:choose Tag Basically this tag work like the switch…case statement in Java and provides a mutually exclusive conditional operations. c:when Tag Likewise, the c:when tag works as a Case statement in switch….case statement of Java. Therefore, witin the c:choose tag, we can specify several c:when tags according […]

When and How to Use JSTL Tags

In this article, I will explain When and How to Use JSTL Tags. Basically, we can use JSTL tags in place of the scriptlet. When to Use JSTL Tags? In general, we use the JSP Tag library in the following situations. For the purpose of reducing the number of lines of code, the corresponding JSTL tag is a good choice. […]

Running Instructions in an Interactive Interpreter in Python

This article demonstrates several examples of Running Instructions in an Interactive Interpreter in Python. In order to work with a python command-line interpreter, first, you need to install python. After that launch the command prompt and enter the python command as given below. Further instructions can be given on this command-line interpreter. The following code shows the basic syntax of […]

A Login Application using JSP, Servlet, and JDBC

The following example shows A Login Application using JSP, Servlet, and JDBC. Specifically, the Login.jsp file creates a client-side form that allows users to enter their credentials. Once, the user enters data and clicks on the Submit button, the LoginServlet executes. Furthermore, the database table used here is named myusers. The following figure shows the data stored in this table. Login.jsp LoginServlet.java Since the method […]

Find a Palindrome Number in VB.NET

The following example shows how to Find a Palindrome Number in VB.NET. To begin with, let us first understand what a palindrome number is. Basically, a palindrome number is a number that is equal to the number obtained by reversing the given number. Therefore, a palindrome number remains the same when we reverse its digits. Also, it is called a numeral palindrome. Further, […]

Example of Servlet and JDBC Connectivity

This example explains Servlet and JDBC Connectivity with a MySQL database. As can be seen in the output, this example shows a list of users which it fetches from a database table. Further, we use MySQL Workbench 8.0 CE for creating our database. Creating Database Table To begin with, we create a database called d1. Further, we use the <use d1> command and to make the […]

Deep Learning Practice Exercise

The following Deep Learning Practice Exercise comprises important deep learning concepts. As a matter of fact, implementing a deep learning algorithm becomes easy with the help of certain python packages. Furthermore. TensorFlow and Keras are two such libraries that you can use in deep learning. While TensorFlow is an open-source library that offers both high-level and low-level APIs, Keras has […]

Python Practice Exercise

The following Python Practice Exercise comprises basic programming constructs, control flow, and functions in python. Also, the learner can apply the concepts of data structures like lists, tuples, sets, and dictionaries in python applications. Apart from this, it includes the use of object-oriented programming features of python to develop applications. Additionally, the following Python Practice Exercise aims to make you learn how […]

When and How to Use Servlet Annotations

In this article, I will explain When and How to Use Servlet Annotations. In fact, the Servlet version 3.0 introduces the concept of annotations. As a result, it is no longer required to use only the web.xml file for configuring the servlets. Hence, we have now annotations to configure various components of the servlet. Accordingly, IDEs like Eclipse have the support of […]

Performing Set Operations in LINQ

In this article, I will explain how to perform Set Operations in LINQ. Basically, Language Integrated Query (LINQ) has several query methods for performing set operations such as union, intersection, and set difference. Query Methods for Performing Set Operations in LINQ The following section provides a description of query methods available in LINQ. In fact, we can represent a set […]