Search This Blog

Tuesday, May 10, 2005

One more Java web tier?

A new web tier has been sprung from the Spring camp called Spring Web Flow. At first, I was a bit wary of yet another web flow - after your typical JSP/Servlets, Struts, WebWorks, and now this.

But one thing surprised me though - the simplicity of the architecture. The intereseting aspect is that they are equating the page flow of a website as a state diagram. So, in effect, a website (or more specifically, a specific flow of web pages to accomplish something) is like the state diagram of a class. Each state is represented by a page and each event is an action that is performed by the user.

It's so simple that it drives me crazy why I didn't think about it when I read about the GoF state pattern!

With a nice architecture, I hope it keeps its promise. I'm thinking if I should use it in my Carnatic Search Engine.