This article presents the creation of a Web application with the Spring framework.
It presents various techniques: use of JNDI resources, Spring MVC (controller, form with validation, mapping, tiles), internationalization, service and DAO with JPA.
Objective
Throughout those courses, we will see different aspects of the realization of a Web application with the Spring framework. The different steps are:
- Develop a web page displaying "Hello World": Creating a simple JSP displaying the message and modifying the simple JSP with Spring (with and without query parameters)
- develop a web page displaying the values of a database;
- develop a web page to create database values;
- develop a web page to delete values from the database;
- develop a web page to modify values in the database;
unify these pages to make a web application that combines these features.
These steps are an opportunity to approach various techniques: use of JNDI resources, Spring MVC (controller, form with validation, mapping, tiles), internationalization, service and DAO with JPA.
In addition to Spring, the Object Relational Mapping (ORM) solution Hibernate will be used to access data in Java Persistence API (JPA) and Apache Tiles will be used to set up a unifying menu. 'application.
Prérequis
Il est important d'avoir des notions sur Java et les applications Web. Par ailleurs, l'article n'expliquera pas le fonctionnement ou la configuration d'Eclipse, Tomcat, Maven ou Hibernate.
Training program
Part 1: SpringMVC presentation
Part 2: creating eclipse project
Part 3: Layering architecture of our application
Part 4: Web.xml configuration in 2 steps
Part 5: Implementation Dao layer
Part 6: Implementation Service Layer
Part 7: Handler Mapping homepage.
Part 8: Coding of the JSP view
Part 9: Deployment
Part 10: Annotations Spring 2.5 @Controller
Part 11: Maven project
Submitted On : 2016-06-30
Taille : 1,303.35 Kb
Downloads : 534
Submitted On : 2016-06-30
Taille : 149.44 Kb
Downloads : 626
Submitted On : 2016-06-30
Taille : 1,164.95 Kb
Downloads : 1305
Submitted On : 2019-04-30
Taille : 0.84 MB
Downloads : 303
Submitted On : 2022-02-03
Taille : 0.9 MB
Downloads : 100