Using OpenSessionInViewFilter in Spring Web Application

2009 October 10
by cchweblog

A way too simple Spring 2.5 web application to show how to use OpenSessionInViewFilter together with Hibernate.

read more…

Integration Test with Maven

2009 June 25
tags:
by cchweblog

A collection of posts found on the internet focusing on how to tweak/enhance Maven to perform integration tests.

  1. Integration testing with maven 2.0 – by Julien Dechmann
  2. Getting Coverage For Integration Tests – by Ulrik Sandberg
  3. Integration tests with Maven (Part 1): Failsafe Plugin – by velo
  4. Unit tests are not integration tests – by John Ferguson Smart
  5. Maven Integration Testing – by Rod Coffin
  6. Maven and Integration Testing – from codehaus


read more…

[WARNING] File encoding has not been set

2009 June 24
tags:
by cchweblog
[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent!


Saw this warning message when using failsafe maven plugin, found the fix after a little search.

read more…

Developing Spring MVC application – Annotation based Controller and JPA

2009 June 20
by cchweblog

This application is based on the sample Spring MVC application described in the “Developing a Spring Framework MVC application step-by-step” document in the Spring Framework 2.5 download. The differences are

  • Annotation based Controller class
  • JPA based persistence using Hibernate
  • Maven based project configuration
  • Test classes are upgraded to use JUnit 4 annotation


read more…

Spring MVC – Resolving Locale and Externalizing Locale-Sensitive Text Messages

2009 June 16
by cchweblog

A sample Spring MVC application to show how to

  • Retrieve the current Locale Resolver
  • Retrieve the current Locale
  • Set a new Locale
  • Display different version of the same message for different locales

read more…

Developing Spring Web Flow 2 Application

2009 June 6
by cchweblog

This is a series of posts about developing a Shopping Cart web application using Spring Web Flow 2. It is not intended to be a step by step tutorial of how to develop a Spring Web Flow application but rather to show some of the key features and implementation ideas of a Spring Web Flow application.

read more…

Developing Spring Web Flow 2 Application part 6 – Misc and References

2009 June 1
by cchweblog

As part of “Developing Spring Web Flow 2 Application” series, this post shows some application details and reference document.

read more…

Developing Spring Web Flow 2 Application part 5 – Persistence

2009 May 27
by cchweblog

As part of “Developing Spring Web Flow 2 Application” series, this post shows the following features:

  • Persistence

read more…

Developing Spring Web Flow 2 Application part 4 – Spring Security and HTTPS

2009 May 26
by cchweblog

As part of “Developing Spring Web Flow 2 Application” series, this post shows the following features:

  • Secure a view with Spring Security
  • Switching between HTTP and HTTPS connections

read more…

Developing Spring Web Flow 2 Application part 3 – Model Validation, Displaying Error and Custom Action

2009 May 15
by cchweblog

As part of “Developing Spring Web Flow 2 Application” series, this post shows the following features:

  • Model Validation
  • Display Error Message
  • Custom Action object
  • action-state flow design

read more…