Home » Archives for Theodora Fragkouli » Page 2

Author Archives: Theodora Fragkouli

Theodora has graduated from Computer Engineering and Informatics Department in the University of Patras. She also holds a Master degree in Economics from the National and Technical University of Athens. During her studies she has been involved with a large number of projects ranging from programming and software engineering to telecommunications, hardware design and analysis. She works as a junior Software Engineer in the telecommunications sector where she is mainly involved with projects based on Java and Big Data technologies.

Log4j 2 RollingFileAppender example

In this example we shall talk about the RollingFileAppender, one of the most basic appenders of Log4j. Log4j a thread-safe and flexible logging library for Java, licensed under the Apache Software Foundation. The log4j architecture has three basic components, the logger, the appender and the layout. The logger is used to log the messages, the appender publishes the messages to ...

Read More »

Hibernate Annotations Example

This is an example of how to make use of Hibernate annotations when interacting with a database. Hibernate is an object-relational mapping library for Java, that provides a framework for mapping an object-oriented domain model to a traditional relational database. It is also an implementation of the Java Persistence API (JPA) specification. Hibernate provides an easy way to configure how ...

Read More »

log4j rootlogger example

In this example we shall talk about the rootlogger, which is a basic component in Log4j. Log4j a thread-safe and flexible logging library for Java, licensed under the Apache Software Foundation. The basic components of the log4j architecture are the loggers, the appenders and the layouts. Loggers are used to log the messages, appenders to publish the messages to different ...

Read More »

log4j properties example

This is an example of how to configure log4j, using the log4j.properties file. Log4j is a logging library for Java, licensed under the Apache Software Foundation. It is a Logging Framework that is thread-safe and flexible, thanks to its configuration. With log4j you can configure logging in runtime, and you can log to different outputs, such as files or even ...

Read More »

Hibernate validator example

This is an example of how to make use of Hibernate validator API. Hibernate validator can be used to validate data, which is a very important issue in every layer of an application. For example, validating is important when submitting HTML forms. Hibernate validator framework provides many annotations, that can be used to validate input fields of a form against ...

Read More »

Java JDialog example

This is a tutorial of how to create dialog windows, using the JDialog class of the javax.swing package. The Swing API provides libraries to create a Graphical User Interface in platform independent way. It follows the MVC architecture. It consists of UI elements, which are the visual elements that a user interacts with, layouts, which define the use of the ...

Read More »

Java ImageIO – Write image to file

This is an example of how to write an image to a file, making use of the ImageIO utility class of Java. ImageIO class of javax.imageio package, provides methods to locate ImageReaders and ImageWriters, to perform encoding and decoding and other methods for image processing. Among the methods of ImageIO class, there are the write(RenderedImage im, String formatName, File output), ...

Read More »

Spring MVC Form Handling Example

With this tutorial we shall explain create and submit a form in Spring MVC. Spring MVC provides tags that are data binding-aware and allow us to handle form elements, compining JSP and Spring Web MVC. Each tag in Spring MVC provides support for the set of attributes of its corresponding HTML tag, thus making the tags familiar and intuitive to ...

Read More »

Spring MVC File Upload Example

With this tutorial we shall explain how to provide users the option to upload a file, inside a form in Spring MVC. When creating and submitting a form, it is very common need to upload a file during the form submission. This can be achieved very easily, with the use of Spring MVC API. This example contains a simple class, ...

Read More »

Spring MVC Form Errors Tag Example

In this example we will show you how to display error messages when submitting a form in Spring MVC. The tag provided by Spring MVC is errors tag. The errors tag renders field errors in an HTML span tag. It provides access to the errors that are created in the Controller or the Validators used. Here, we will create a ...

Read More »