Changing ParameterAware to HttpParametersAware
问题 I'm upgrading my project from struts 2.3.1 to 2.5.12 Since ParametersAware is deprecated in 2.5.12, I want to change ParametersAware to HttpParametersAware . But setParameter() method is entirely different in both. setParameters(HttpParameters parameters) (struts 2.5.12) setParameters(Map<String,String[]> parameters) (struts 2.3.1) How to do this? 回答1: Change Map<String,String[]> to HttpParameters. The later class implements a Map<String,Parameter> , so you can use this to get/put parameters