You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by selvi <se...@gmail.com> on 2017/10/10 04:19:58 UTC

Re: Struts 2.3 to 2.5 migration guide

I am having issues with parameterinterceptor - setParameters method earlier
version had parameters like Action , Value stack and map>

Can you email me the code snippet for 2.5 parameterInterceptor -
setParameters method?

I done with all the changes except for this one?

I appreciate your help.

Thanks
Selvi



--
Sent from: http://struts.1045723.n5.nabble.com/Struts-Dev-f3499899.html

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Re: Struts 2.3 to 2.5 migration guide

Posted by Yasser Zamani <ya...@live.com>.

On 10/10/2017 7:49 AM, selvi wrote:
> I am having issues with parameterinterceptor - setParameters method earlier
> version had parameters like Action , Value stack and map>
> 
> Can you email me the code snippet for 2.5 parameterInterceptor -
> setParameters method?
> 
> I done with all the changes except for this one?
> 

I don't think you need to do any thing as it is an internal change of 
Struts. However, below is it's signature; It seems last parameter has 
changed from Map to HttpParameters.

import org.apache.struts2.dispatcher.HttpParameters;
protected void setParameters(final Object action, ValueStack stack, 
HttpParameters parameters)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org