THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
- An @In annotation that marks action properties that should be injected from the session before an action executes
- An @Out annotation that marks action properties that should be put back into the session after an action executes
- An @Begin annotation that creates a new converstaion
- An @End annotation that ends a conversation and cleans up any variables stored in that conversation
Requirements
- Struts 2.x
Installation
This plugin can be installed by copying the plugin jar into your application's /WEB-INF/lib
directory.
Usage
The scope plugin allows declarative scope management of action properties. Action properties can be scoped to one of several predefined scope. The predefined scopes are:
...
Code Block |
---|
public class ExampleAction extends ActionSupport { @In (scope=ScopeType.CONVERSATION) @Out (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; } ... } |
...
Future Features
- Add support for nested conversations
- Add support for named conversations
Installation
...