Java articles

Introduction to Play Framework

When we build webapps, we can think that all of them can be constructed with Spring framework and its related projects. It's right, but which programmer is satisfied by knowing only one framework or only one programming language ? It's why we'll explore here another way to deploying web applications, the deploying with Play Framework.

Continue Reading →

Google Guava : primitives support

Another interesting feature of Google Guava is Java's primitves support which allows us to work easiest with booleans, ints, longs or even bytes, signed as well as unsigned.

Continue Reading →

Autowired annotation in Spring

Have you ever asked you about @Autowired annotation in Spring ? Frequently used to facilitate Dependency Injection, an whole mechanism is hidden under this process.

Continue Reading →

@ModelAttribute in Spring

Previously we approached the idea of Spring validation with annotations. We mentioned several lines about @ModelAttribute annotations. But it's still not sufficient to understand well this concept.

Continue Reading →

Spring validation with @Valid

Validation features in Spring are universal. You can use annotation or make your own validator and bind it into the request. This article will focus on the first solution.

Continue Reading →

Handler interceptors in Spring

Standard way of catching HTTP request in Java's web applications is the use of filters. But they are reserved only for webapps. Spring introduces a new way to do it, more general, called handler interceptors.

Continue Reading →

Handlers in Spring

Central piece of Spring web application is DispatcherServlet. It's a central point of entry for all incoming requests. But it can't do nothing without another important concept, handlers.

Continue Reading →

Spring DispatcherServlet lifecycle

The master piece of Spring web framework architecture is dispatcher servlet. We'll focus on it in this article.

Continue Reading →

Introduction to Spring Security

Using Spring Security is like the blessing. Everything is coded and you only need to implement it correctly. But always is good to know what we are implementing. This is the main purpose of this article, to understand how one of particular Spring Security modes, ACL, works.

Continue Reading →

Introduction to Google Guava

External libraries are always helpful. They can help to resolve many "hot" programming problems, but also learn us the good rules of coding. One of this type of libraries in Java world is Google Guava.

Continue Reading →

String memory management in Java

One of the most used objects in Java is String. This omnipresence makes that String is managed a little bit differently than other objects in Java.

Continue Reading →

Session storage in Tomcat

Knowing what is under the hood of your car, simplifies always its reparation. In this article we'll focus on session management in Tomcat to better debug our applications in the future.

Continue Reading →

Types of exceptions

Using of standard Java exceptions simplifies the understanding of every project. But they are much exceptions that we can use and it's not always simple to found the right one.

Continue Reading →

Tomcat workers

Previously, the article about webapp installation under Apache/Tomcat showed us how to put Apache and Tomcat to work together. One interesting concept appeared there. It is the idea of workers which will be presented now.

Continue Reading →

Install webapp under Apache/Tomcat

Java web applications are specific. They need a servlet container to work. In this article we will see how to configure Apache and one of the most populars servlet containers, Tomcat, to work together.

Continue Reading →