Home » Tag Archives: JavaEE

Tag Archives: JavaEE

Java EE Bean Validation Example

1. Introduction Hi Java Code Geeks fan! This article is about a Java EE Bean Validation Example. One coding practice that we should do is to always validate variables before using. In this example we validate the input received from the user to maintain data integrity. Maintaining data integrity is an important part of application logic. Validating data can take ...

Read More »

Java EE Observer Design Pattern Example

1. Introduction Hi Java Code Geeks fan! This article is about a Java EE Observer Design Pattern Example. The observer pattern is one of the most widely used design pattern in programming. It is implemented in the java.util package of Java SE 8 as Observer and Observable. By extending these classes, we can easily implement the observer pattern. But this ...

Read More »

Java Servlet and JSP Example

In this article we will demonstrate a simple Servlet and JSP example using the maven cargo plugin from the command line. We will also cover, albeit briefly, the functioning of both Servlet and JSP constructs within the Servlet Container in terms of how they are used to satisfy a HTTP request. The sample application will greet you with your name, ...

Read More »

Java Servlet Context Listener Example

In this tutorial, I will be demonstrating a simple example of how to use ServletContextListener to make some global initializations and configurations. We will be using WildFly application server and Eclipse to demonstrate the examples in this post. None database is required to run this example. 1. Introduction ServletContext is a configuration object which is created when application server starts and ...

Read More »

Build Java EE Application with Ant and Eclipse Example

Now, that we have understood the basics of ANT in the previous example, we can now proceed to use the same, for building a Java EE Application. A typical Java Web-Application involves cleaning the old compiled Class and WAR files, re-compiling the source files, packaging it, into a WAR and finally, copying it into the deployment of the respective Web/Application ...

Read More »