THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block |
---|
public class ExampleAction {
@In (scope=ScopeType.SESSION)
@Out (scope=ScopeType.SESSION)
private ExampleBean exampleBean;
...
}
|
The next example shows how a conversation can be created and destroyed. Currently only a single active conversation is supported. A conversation will automatically be created for variables defined as CONVERSATION scope.
Code Block |
---|
public class ExampleAction extends ActionSupport { @In (required=false, scope=ScopeType.CONVERSATION) @Out (required=false, scope=ScopeType.CONVERSATION) private ExampleBean exampleBean; ... @Begin public String startConversation() { exampleBean = new ExampleBean(); return SUCCESS; } public String doStuffinConversation() { return SUCCESS; } @End public String endConversation() { return SUCCESS; } ... } |
TODO
- Add support for nested conversations
- Add support for named conversations
...