SpringMVC4 + Spring Data JPA + SpringSecurity configuration using JavaConfig

In this article we will see how to configure and integrate SpringMVC4, Spring Data JPA with Hibernate and SpringSecurity using JavaConfig. 1. First let’s configure all the necessary dependencies in pom.xml 4.0.0 com.sivalabs springmvc-datajpa-security-demo 1.0 war 1.7 4.11 1.7.5 1.0.13 4.0.0.RELEASE 1.4.1.RELEASE 3.2.0.RELEASE 4.2.6.Final 1.7.2 5.1.26 2.3.1 1.2.2 3.1 ${project.artifactId} org.apache.maven.plugins maven-compiler-plugin 3.1 ${java.version} ${java.version} […]

Read More

Context root relative URLs using Spring’s

While developing web applications the common problem is to reference the static resources like js, stylesheets,images in JSPs from the relative URLs.Suppose in your project you have the following structure.MyApp        src        WebContent              home.jsp              jsp                  createUser.jsp              js                  util.js              css                   style.css          […]

Read More

How to POST and GET JSON between EXTJS and SpringMVC3

After one month of evaluation of the frameworks and tools, i choose ExtJS for UI and Spring/SpringMVC for business layer for my pet project. Again by using ExtJS we can send data to server by form submits or as request parameters or in json format through Ajax requests. ExtJS uses JSON format in many situations […]

Read More

Authentication Checking using SpringMVC Interceptors

For many web applications, some URLs need to protect from public access and some other URLs need to be protected based on the User Roles and privileges. To achieve this we can use Filters that comes with Servlet API or we can use JAAS(Java Authentication and Authorization Service). SpringMVC provides Interceptors which can be used […]

Read More

SpringMVC 3 + Tiles 2.2.2 Integration

Apache Tiles is a popular and mostly used templating framework for java based web application. Tiles became more popular because Struts 1.x uses Tiles as its default templating framework.SpringMVC which is an MVC framework, like Struts, also supports integration of Tiles as its templating framework. Let us see how we can integrate SpringMVC and Tiles. […]

Read More