Synchronizer Token Pattern in Struts


The main problem that this pattern is trying to solve is the double submissions of forms.
For example, look at this list of event that can lead to a double submission.

  • Clicking more than once on a submit control
  • Using Refresh button
  • Using the browser back button to resubmit form
  • Using Browser history feature and re-submit form.
  • Malicious submissions to the server

[more ...]


 

IPhone: The Holy Grail ?!?


apple-iphone_0.jpgSince a week I’m a proud owner of a brand new IPhone 3G.

Having a traditional cell phone since at least 10 years, switching to a mobile device that have a complete different design concept was a shock at first.

The first question I was asking myself was: “What are you going to do with this, just make some call ?!? Do you really need all that fluff!!” and the geekie answer was obvious: “Hell Ya!!!”

The iPhone is a smart phone and use state of the art technology which is extremely user friendly.

[more ...]


 

Defining Advice


Advice will be executed before, after and even around a method that have been selected by a pointcut. In this discussion, I will show you how to define Advice in various

Again, for the purpose of my post, consider that I use AOP annotations.

Advice Type

Advice comes in many flavours. I will explain in detail and demonstrate the differences that exist between them. Here’s the list that Spring AOP support.

  • Before
  • After
  • After returning
  • After throwing
  • Around

[more ...]