in jbpm 3.0/3.1 you will see the taskbean and homebean return static 'goto page' values. You could adapt these beans to return a dynamic value, e.g. the taskname or transitionname and have a struts mapping that makes sure the correct page is shown. This way the process decides which page to show. 3.0/3.1 is jsf based, but the concept is the same
The idea is kind of what I am looking for - be able to associate web form with a task within the workflow. When workflow comes to that task, a web form is shown. When the webform is submitted, action is performed and then decision is made to move on to the next step within the workflow.
From very high level, it's kind of building a long run wizard - tubotax online type of application. Go through a series of pages with branching and other workflow logic. User can leave at any point. When user comes back, user is able to pick up right from where he levave last time.
great, so jBPM is a fit for you?