Visit Map

Saturday, April 01, 2006

A rudimentary page flow controller

I have started refreshing struts. I am reading a book called Sturts Survival guide.
Every action has to render the next view to the user after successful business logic invocation.This would mean that a standard mapping.findForward() in every method of yours.The rundimentory page flow controller eliminates this by providing this information in declarative manner in struts-config.xml utilizing MyAction mapping That information is used at runtime to automatically decide which page to forward to. The reason why the page flow controller is called rudimentory si becuase it has serious limitation. If the page trasistions are dyanamic then it cannot work. This controller serves as an example for customized action mapping usage.