我试图了解ActionMappingParametersInteceptorStruts2 中类的使用。
在 API 中查看:
此拦截器为该请求在值堆栈上设置来自操作映射的所有参数。它的操作与 完全一样
ParametersInterceptor,只有参数来自ActionMapping,而不是ActionContext.getParameters()方法。
有没有一种情况,一个ActionMapping类可能包含一组不同的请求参数,而不是我从中得到的ActionContext.getParameters()?
拦截器的支柱defaultStack似乎首先调用 the ParametersInterceptor,然后调用ActionMappingParametersInteceptor,但我看不出有任何理由这样做。