MVC

Sending Email With Spring MVC Example

Spring provides the first-class support for sending emails. It comes with the utility libraries which abstracts away the complexities of the underlying mailing system and provides a simple API to use in the application for sending emails. In this tutorial, we will show how to write a simple Web application for sending an email based on the Spring MVC framework ...

Read More »

Spring MVC RequestMapping Example

Spring MVC is one of the most important modules of the Spring framework. In this article, we are going to discuss one of the main annotation in Spring MVC i.e. @RequestMapping which is used to map a web request to Spring Controller’s handler methods. 1. Introduction 1.1 Spring Framework Spring is an open-source framework created to address the complexity of ...

Read More »

Spring MVC Redirect Example

Spring MVC is one of the most important modules of the Spring framework. In this example, we will show how to write a simple Spring based web application which makes use of redirect to transfer an HTTP request to another page. 1. Introduction 1.1 Spring Framework Spring is an open-source framework created to address the complexity of an enterprise application ...

Read More »

Spring MVC Architecture Overview Example

In this example, we will build a Hello World web application using the Spring MVC framework. Spring MVC is one of the most important modules of the Spring framework. It builds on the powerful Spring Inversion of Control (IoC) container and makes an extensive use of the container features to simplify its configuration. 1. Introduction 1.1 Spring Framework Spring is ...

Read More »

Spring MVC Hibernate Tutorial

1. Introduction To develop web applications these days, we use Modern View Controller architecture. Spring provides MVC framework with ready components that can be used to develop flexible and loosely coupled web applications. MVC framework provides separation between input logic, business logic and UI logic. Model encapsulates the application data View is responsible for rendering the model data Controller is ...

Read More »

Angularjs and Spring Integration Tutorial

HTML5, rich browser-based features, and the single page application are extremely valuable tools for modern development. Every application requires a server side (backend) framework besides the client side (frontend) framework. The server side can serve content, render dynamic HTML, authenticate users, secure access to protect resources or interact with Javascript in the browser through HTTP and JSON. Spring has been always one of the ...

Read More »

Spring MVC Application with Spring Security Example

In one of our past examples, we learned to create a simple Spring MVC web-applciation. In this example we will demonstrate how we can implement Spring-Security to secure our web-application. We shall discuss and demonstrate both Authentication as well as the Authorization aspect of an application’s security. 1. Introduction to Spring Security Security of a web-application revolves around three major ...

Read More »

Spring MVC Interceptor Tutorial

In this tutorial, we are going to discuss about SpringMVC Interceptor. First, we discuss about Spring MVC architecture and where an interceptor is invoked in this architecture, then we have a look at the implementation of interceptor in more details. 1. Overview of Spring MVC Architecture Spring’s web MVC framework is request-driven and designed based on a central Servlet that dispatches requests to controllers ...

Read More »

Spring MVC login example

In this example, we shall create a simple Login Application using Spring MVC framework. Spring Framework follows the MVC design by default so that the view,controller and Data modules are loosely coupled. In a typical Spring MVC Application, the role played are : View : JSP Controller : Classes annotated with @Controller Data : Repository Classes With this knowledge we ...

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 »