Home » Archives for Mohammad Meraj Zia » Page 11

Author Archives: Mohammad Meraj Zia

Senior Java Developer

XPath ends-with example

In this example we will learn how to use the ends-with function of XPath. We will start with the introduction of XPath – what it is and how to use it, then we will see the working model of ends-with function. Tools and technologies used in this example are Java 1.7, Maven, Intellij, Saxon. 1. Overview An XPath expression specifies a pattern ...

Read More »

XPath preceding-sibling example

In this example we will learn how to use the preceding-sibling function of XPath. We will start with the introduction of XPath – what it is and how to use it, then we will see the working model of ‘preceding-sibling’ function. Tools and technologies used in this example are Java 1.7, Maven, Intellij. 1. Overview An XPath expression specifies a pattern ...

Read More »

Using XPath in Selenium Example

In this example we will learn how to use XPath in Selenium. We will start with the introduction of Selenium and XPath – what it is and how to use it, then we will see the working model of how to use XPath in Selenium tests. Tools and technologies used in this example are Java 1.7, Maven, Intellij, Selenium 2, ...

Read More »

XPath following-sibling example

In this example we will learn how to use the following-sibling function of XPath. We will start with the introduction of XPath – what it is and how to use it, then we will see the working model of ‘following-sibling’ function. Tools and technologies used in this example are Java 1.7, Maven, Intellij. 1. Overview An XPath expression specifies a pattern ...

Read More »

XPath starts-with example

In this example we will learn how to use starts-with function of XPath. We will start with the introduction of XPath – what it is and how to use it, then we will see the working model of ‘starts-with’ function. Tools and technologies used in this example are Java 1.7, Maven, Intellij. 1. Overview XPath expression specifies a pattern that ...

Read More »

Struts 2 and Log4J Example

In this example we will learn how to integrate Struts2 application with Log4j logging framework. Apache Struts is a free, open-source, MVC framework for creating elegant, modern Java web applications. It favors convention over configuration, is extensible using a plugin architecture, and ships with plugins to support REST, AJAX and JSON. Log4J is Apache’s popular logging framework. Tools and technologies ...

Read More »

Log4j Property Configuration Example

Log4J is an open source project which allows developers output log statements with configured granularity. The configuration can be maintained by the configuration files (XML, Property). Log4J has three main components: Loggers, Appenders and Layouts. These three components work together to help developers configure Log4J to output desired statements in given format and target. The benefit of log statements over simple ...

Read More »

Log4j XML Configuration Example

In this example we will see how to configure Log4j using XML. You can use the property file as well but now  days xml is preferred over property file. Note that unlike Log4j 1.x, the public Log4j 2 API does not expose methods to add, modify or remove appenders and filters or manipulate the configuration in any way. In this example we are ...

Read More »