Struts2 redirectAction,input&消息存储拦截器逻辑

时间:2013-10-29 13:48:20

标签: struts2

我对redirectAction,输入结果和放大器非常困惑。消息存储拦截器

假设我们有两个动作,并且在拦截器堆栈中都有消息存储。

情景1

Form is submitted -> No Errors -> Returns success -> fires a redirectAction -> that action is executed -> fire SUCCESS -> final jsp displayed.

这是完美的,也是可以理解的。

场景2

Form is submitted -> There are errors -> Returns input -> fires a redirectAction -> due to message-store interceptor the errors/messages are found at the second action -> hence, the method shouldn't be executed, instead the errors will be found by an intermediate interceptor and it'll return INPUT

此流程是否正确?我错过了什么吗?

但是在第二个场景中,表单中填充了一些值,我看到第二个动作正在执行。

请更正流程。

0 个答案:

没有答案