1 16 package org.springframework.webflow.executor; 17 18 import org.springframework.binding.mapping.AttributeMapper; 19 import org.springframework.binding.mapping.MappingContext; 20 import org.springframework.webflow.context.ExternalContext; 21 import org.springframework.webflow.core.collection.MutableAttributeMap; 22 23 37 public class RequestParameterInputMapper implements AttributeMapper { 38 public void map(Object source, Object target, MappingContext context) { 39 ExternalContext externalContext = (ExternalContext)source; 40 MutableAttributeMap inputMap = (MutableAttributeMap)target; 41 inputMap.putAll(externalContext.getRequestParameterMap().asAttributeMap()); 42 } 43 } | Popular Tags |