对话插件与 ActionFlow [英] Conversation Plugin vs ActionFlow

查看:38
本文介绍了对话插件与 ActionFlow的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

谁能详细说明 Struts2 Conversation 插件和 ActionFlow 插件之间的区别,以及我应该何时选择其中之一?

Can anyone detail the differences between the Struts2 Conversation plugin and ActionFlow plugin and when I should choose one or the other?

问候

推荐答案

它们是完全不同的插件,用于不同的目的.Conversation 插件将 conversation 范围添加到您的应用程序中.ActionFlow 插件可帮助您从操作创建向导,其中在某些范围内保存数据只是功能之一.使用 ActionFlow 您可以定义动作序列(即在当前动作之后执行哪个动作).使用 Conversation,您可以定义将哪些数据放入 conversation 范围以及对话何时开始和结束.

They are totally different plugins for different purposes. Conversation plugin adds conversation scope to your application. ActionFlow plugin helps you create wizard from actions where holding data in some scope is just one of the features. With ActionFlow you can define sequences of actions (i.e. which action will be executed after the current action). With Conversation you can define which data will be put into conversation scope and when conversation will start and end.

当您需要创建 向导.

当您想添加 对话范围到您的应用程序.

Use Conversation plugin when you want to add conversation scope to your application.

这篇关于对话插件与 ActionFlow的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆